kramdown

Jekyll Syntax Highlighting Not Working - Classes Are Not Being Added

混江龙づ霸主 提交于 2019-12-01 05:37:07
问题 I cannot get syntax highlighting to work on my Jekyll-powered blog. The development files can be found here: https://github.com/StevenXL/stevenxl.github.io. As you can see, in my _config.yml file, I have the following: markdown: kramdown kramdown: syntax_highlighter: rouge In my css/custom.css file, I am importing the CSS file to highlight the syntax with an @import command. The actual CSS file for highlighting lives in css/monokai.css . I am not sure what I am doing wrong. This seems to work

how to pass content to jekyll default converter after custom conversion?

邮差的信 提交于 2019-11-30 18:27:14
问题 I am trying to write a jekyll plugin which do something on markdown files first and passing the content back to the default converter For example, module Jekyll class RMarkdownConverter < Converter safe :false priority :high def matches(ext) ext =~ /^\.(md|markdown)$/i end def output_ext(ext) ".html" end def convert(content) # do something with content # then pass it back to default converter end end end Right now, the closest thing that I could get it converter = Jekyll::Converters::Markdown

Escaping double curly braces inside a markdown code block in Jekyll

♀尐吖头ヾ 提交于 2019-11-27 17:39:58
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 ripped out by the liquid processor. By the way, I'm using kramdown as the markdown processor. Here is something I've tried: {% highlight html linenos %} Hello, my name is {{name}}. {% endhighlight %} This one removes the {{name}} section completely because it thinks it's a reference to a liquid variable. I also tried this: {% highlight html linenos

Escaping double curly braces inside a markdown code block in Jekyll

瘦欲@ 提交于 2019-11-26 19:07:45
问题 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 ripped out by the liquid processor. By the way, I'm using kramdown as the markdown processor. Here is something I've tried: {% highlight html linenos %} Hello, my name is {{name}}. {% endhighlight %} This one removes the {{name}} section completely