Can I disable code blocks in Kramdown?

Is it possible to disable code blocks in Jekyll? This would make my .md files more readable.

I have this problem for inline HTML as well as for include.

I use Jekyll to create websites and never want code blocking. Right now I am putting the style inside the HTML as follows:

<div class="coolclass" markdown = 1> <div class="anotherClass">stuff </div> I **love** markdown </div> 

<div class="anotherClass">stuff </div> interpreted as a code block if I do not remove the indent.

 <div class="coolclass" markdown = 1> <div class="anotherClass">stuff </div> I **love** markdown </div> 

I would just disable the code blocks, since I will never show the code.

If kramdown has this parameter, I think jekyll can set it in config like this:

 kramdown: auto_id_stripping: true enable_coderay: false 

I tried enable_coderay false by reading kramdown docs but did not.

+2
source share
2 answers

Coderay is used only for syntax highlighting, and Jekyll is already set to false (see the default configuration here http://jekyllrb.com/docs/configuration/ ).

I assume you need remove_block_html_tags in Kramdown. But it is currently not supported by Jekyll. Perhaps you can try installing Kramdown as a separate stone to enable this functionality.

0
source

Using two spaces instead of 4 spaces or tabs eliminates most of the problems. However, things like "h1" ("#title") must be at the beginning of the line to work. Not really there ...

To include html in markup files

I'm doing it:

 {% capture includeGuts %} {% include signup-guts.html %} {% endcapture %} {{ includeGuts | replace: ' ', ''}} 
0
source

All Articles