Class: Kramdown::Parser::MarkdownLint
- Inherits:
-
Kramdown
- Object
- Kramdown
- Kramdown::Parser::MarkdownLint
- Defined in:
- lib/mdl/kramdown_parser.rb
Overview
modified parser class - see comment above
Constant Summary collapse
- FENCED_CODEBLOCK_MATCH =
Regular kramdown parser, but with GFM style fenced code blocks
Kramdown::Parser::GFM::FENCED_CODEBLOCK_MATCH
Instance Method Summary collapse
-
#initialize(source, options) ⇒ MarkdownLint
constructor
A new instance of MarkdownLint.
Constructor Details
#initialize(source, options) ⇒ MarkdownLint
Returns a new instance of MarkdownLint.
10 11 12 13 14 15 |
# File 'lib/mdl/kramdown_parser.rb', line 10 def initialize(source, ) super i = @block_parsers.index(:codeblock_fenced) @block_parsers.delete(:codeblock_fenced) @block_parsers.insert(i, :codeblock_fenced_gfm) end |