Class: JayFlavoredMarkdownFilter
- Inherits:
-
HTML::Pipeline::TextFilter
- Object
- HTML::Pipeline::TextFilter
- JayFlavoredMarkdownFilter
- Defined in:
- lib/jay_flavored_markdown/markdown_converter.rb
Overview
Convert Text to HTML filter conformed to HTML::Pipeline github.com/jch/html-pipeline
Instance Method Summary collapse
Instance Method Details
#call ⇒ Object
627 628 629 630 631 632 633 634 635 636 637 |
# File 'lib/jay_flavored_markdown/markdown_converter.rb', line 627 def call Kramdown::Document.new(@text, { input: "JayKramdown", # syntax_highlighter: :rouge, # syntax_highlighter_opts: { # line_numbers: true, # css_class: 'codehilite' # } } ).to_line_numbered_html.strip.force_encoding("utf-8") end |