Questions tagged [kramdown]

kramdown (sic, not Kramdown or KramDown, just kramdown) is a free MIT-licensed Ruby library for parsing and converting a superset of Markdown. It is completely written in Ruby, supports standard Markdown (with some minor modifications) and various extensions that have been made popular by the PHP Markdown Extra package and Maruku.

kramdown (sic, not Kramdown or KramDown, just kramdown) is a free MIT-licensed Ruby library for parsing and converting a superset of Markdown. It is completely written in Ruby, supports standard Markdown (with some minor modifications) and various extensions that have been made popular by the PHP Markdown Extra package and Maruku.

More Details

188 questions
96
votes
5 answers

Escaping double curly braces inside a markdown code block in Jekyll

I'm using Jekyll to create a documentation site wherein I am trying to document some code that contains handlebars-like syntax. For example {{foo}}. The problem is that Jekyll uses liquid tags and no matter what I do, my double curlies are getting…
rescuecreative
  • 3,097
  • 2
  • 14
  • 25
29
votes
4 answers

Jekyll & KramDown - How to Display Table Border

I am using Jekyll default kramdown. I have a table showed using surround text, etc. | Tables | Are | Cool | | ------------- |:-------------:| -----:| | col 3 is | right-aligned | $1600 | | col 2 is | centered | …
vancexu
  • 1,348
  • 3
  • 17
  • 26
27
votes
2 answers

Jekyll: How to get markdown parsing inside blocks using Kramdown?

Per the Kramdown docs, setting the option parse_block_html should allow for processing of markdown (Kramdown) syntax inside html blocks. In my _config.yml, I have the settings as: --- name: Blog Name markdown: kramdown kramdown: parse_block_html:…
pete
  • 2,471
  • 3
  • 25
  • 46
19
votes
2 answers

Jekyll raw HTML in post

I have a Jekyll website, with Posts written in Markdown using the Kramdown parser. I would like to add some raw HTML within the post. However when I try to add the HTML, it parses it as markdown (changing <'s to < for example). I have tried:…
Marcus Hughes
  • 4,289
  • 1
  • 21
  • 35
17
votes
3 answers

Jekyll on GitHub Pages: include markdown in another markdown file

I'm using kramdown with Jekyll on GitHub Pages. I have a piece of markdown that I want to use twice, and don't want to maintain two versions of it. How can I include this in other markdown files? For example, I want to type something like {: include…
Andrew Mao
  • 31,800
  • 17
  • 126
  • 212
17
votes
5 answers

Jekyll/Ruby Kramdown Missing Dependency

I am struggling with trying to set up my first jekyll blog. I am trying to run jekyll server, but upon typing it into the terminal I get the error message: You are missing a library required for Markdown. Please run: $ [sudo] gem install…
abalabazn
  • 351
  • 3
  • 7
16
votes
2 answers

Jekyll link within page

I'm using Jekyll on Github, and I wonder whether there's a way to link to a section within a page. Say I have a section like ## Section 1 ## section content and later in the same page I want to link to this section. I've found how to link to…
user7843034
  • 359
  • 2
  • 7
15
votes
2 answers

Table of contents using Jekyll and Kramdown

I'm trying to use Kramdown's auto "Table of Contents" generator on a page (not a post) on my Jekyll site. _includes/toc.html my_cool_stuff/my_cool_page.md --- layout: page --- {% include toc.html…
Devin
  • 387
  • 3
  • 13
15
votes
1 answer

How do I turn off smart quotes in Jekyll?

How do I turn off smart quotes and apostrophes in Jekyll? It is breaking my gulp spellcheck process. I want words like doesn't to stay with a single straight quote. Instead Jekyll is converting them to smart quotes like doesnt’ and I need them to…
David Silva Smith
  • 10,265
  • 10
  • 62
  • 87
12
votes
2 answers

Adding space between text and image in Markdown

In Markdown, you add an image as ![myimg](link) Now, I can easily change the size and placement of said image using attributes as ![myimg](link){: height="75px" width="300px" align="left"} How do I also make it so that there is also a (choosable)…
mar tin
  • 6,786
  • 18
  • 60
  • 86
11
votes
2 answers

How do I put a hyperlink inside a list in Markdown on GitHub Pages?

I have tried the following syntax to make a Markdown list item on a GitHub page of mine a hyperlink: 1. [Caption]: https://example.com 2. Another list item Contrary to intuitive expectations it renders into the following HTML code
Ivan
  • 59,167
  • 87
  • 235
  • 370
9
votes
1 answer

Customize automatically generated TOC on jekyll/kramdown site

I have a Jekyll site that uses kramdown for markdown. In _config.yml I have the following setting that ensures that only

and

elements show up in the automatically generated table of contents: kramdown: toc_levels: "2,3" This works…

Shailen Tuli
  • 11,647
  • 5
  • 33
  • 46
8
votes
4 answers

How do I add permalinks to headers in kramdown?

I'm building a website with Jekyll and Github-Page written in markdown. I want to make it easy to permalink to headers, the way most online documentation does. I want to get a URL with a hash when I click on a header. Is there an easy way to…
Etrain
  • 113
  • 1
  • 7
7
votes
3 answers

Jekyll: Place the kramdown table of contents in an _include for hash navigation

I want to introduce hash links to the headings of a page into the menu of a web page. The web page is generated with Jekyll and it's default layout looks as follows: {% include head.html %} {% include…
Rovanion
  • 3,842
  • 3
  • 25
  • 44
1
2 3
12 13