Module: JekyllKramdownModule
- Included in:
- JekyllKramdown::Kramdown
- Defined in:
- lib/jekyll_kramdown_module.rb
Overview
Class Method Summary collapse
Class Method Details
.markdownify(markdown_text, auto_ids: true, hard_wrap: false, input: 'GFM', math_engine: 'katex', syntax_highlighter: nil) ⇒ Object
3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 |
# File 'lib/jekyll_kramdown_module.rb', line 3 def self.markdownify( markdown_text, auto_ids: true, hard_wrap: false, input: 'GFM', math_engine: 'katex', syntax_highlighter: nil ) require 'kramdown' require 'kramdown-parser-gfm' require 'kramdown-math-katex' Kramdown::Document.new( markdown_text, auto_ids: auto_ids, hard_wrap: hard_wrap, input: input, math_engine: math_engine, syntax_highlighter: syntax_highlighter ) end |