class Kramdown::Parser::MarkdownLint
modified parser class - see comment above
Constants
- FENCED_CODEBLOCK_MATCH
-
Regular kramdown parser, but with GFM style fenced code blocks
- PARAGRAPH_END
-
End paragraphs when a fenced code block starts, matching GFM behavior. Without this, fenced code blocks without a preceding blank line are swallowed into the paragraph.
Public Class Methods
Source
# File lib/mdl/kramdown_parser.rb, line 10 def initialize(source, options) super i = @block_parsers.index(:codeblock_fenced) @block_parsers.delete(:codeblock_fenced) @block_parsers.insert(i, :codeblock_fenced_gfm) end
Calls superclass method