Class: Jekyll::PilcrowConverter
- Inherits:
-
Converter
- Object
- Converter
- Jekyll::PilcrowConverter
- Defined in:
- lib/jekyll_pilcrow_converter.rb
Instance Method Summary collapse
Instance Method Details
#convert(content) ⇒ Object
17 18 19 20 21 |
# File 'lib/jekyll_pilcrow_converter.rb', line 17 def convert(content) document = Kramdown::Document.new(content) document.root = add_pilcrows(document.root) document.to_html end |
#matches(ext) ⇒ Object
9 10 11 |
# File 'lib/jekyll_pilcrow_converter.rb', line 9 def matches(ext) ext == '.md' end |
#output_ext(_ext) ⇒ Object
13 14 15 |
# File 'lib/jekyll_pilcrow_converter.rb', line 13 def output_ext(_ext) '.html' end |