--- title: Markdown Options permalink: "/docs/configuration/markdown/" --- The various Markdown renderers supported by Jekyll sometimes have extra options available. ## Kramdown Kramdown is the default Markdown renderer for Jekyll, and often works well with no additional configuration. However, it does support many configuration options. ### GitHub Flavored Markdown Kramdown supports GitHub Flavored Markdown (GFM). To use GFM with Kramdown in Jekyll, add the following to your configuration. ```yaml kramdown: input: GFM ``` GFM supports additional Kramdown options, documented at [kramdown-parser-gfm](https://github.com/kramdown/parser-gfm). These options can be used directly in your Kramdown Jekyll config, like this: ```yaml kramdown: input: GFM gfm_quirks: [paragraph_end] ``` ### Syntax Highlighting (CodeRay) To use the [CodeRay](http://coderay.rubychan.de/) syntax highlighter with Kramdown, you need to add a dependency on the `kramdown-syntax-coderay` gem. For example, `bundle add kramdown-syntax-coderay`. Then, you'll be able to specify CodeRay in your `syntax_highlighter` config: ```yaml kramdown: syntax_highlighter: coderay ``` CodeRay supports several of its own configuration options, documented in the [kramdown-syntax-coderay docs](https://github.com/kramdown/syntax-coderay) which can be passed as `syntax_highlighter_opts` like this: ```yaml kramdown: syntax_highlighter: coderay syntax_highlighter_opts: line_numbers: table bold_every: 5 ``` ### Advanced Kramdown Options Kramdown supports a variety of other relatively advanced options such as `header_offset` and `smart_quotes`. These are documented in the [Kramdown configuration documentation](https://kramdown.gettalong.org/options.html) and can be added to your Kramdown config like this: ```yaml kramdown: header_offset: 2 ```
Please note that Jekyll uses Kramdown's HTML converter. Kramdown options used only by other converters, such as remove_block_html_tags
(used by the RemoveHtmlTags converter), will not work.