Class: Kramdown::Parser::Mygfm
- Inherits:
-
GFM
- Object
- GFM
- Kramdown::Parser::Mygfm
- Defined in:
- lib/kramdown/ansi.rb
Overview
A custom Markdown parser that extends GFM to provide enhanced parsing capabilities for Kramdown::ANSI.
This class modifies the standard GFM parser by disabling certain quirks and removing specific block and span parsers to tailor the Markdown processing for ANSI terminal output.
Instance Method Summary collapse
-
#initialize(source, options) ⇒ Mygfm
constructor
A new instance of Mygfm.
Constructor Details
#initialize(source, options) ⇒ Mygfm
74 75 76 77 78 79 80 81 82 |
# File 'lib/kramdown/ansi.rb', line 74 def initialize(source, ) [:gfm_quirks] << :no_auto_typographic super @block_parsers -= i[ definition_list block_html block_math footnote_definition abbrev_definition ] @span_parsers -= i[ footnote_marker inline_math ] end |