Class: TTY::Markdown::Parser Private
- Inherits:
-
Kramdown::Parser::Kramdown
- Object
- Kramdown::Parser::Kramdown
- TTY::Markdown::Parser
- Defined in:
- lib/tty/markdown/parser.rb
Overview
This class is part of a private API. You should avoid using this class if possible, as it may be removed or be changed in the future.
Responsible for parsing standard and extended Markdown syntax
Constant Summary collapse
- FENCED_CODEBLOCK_MATCH =
This constant is part of a private API. You should avoid using this constant if possible, as it may be removed or be changed in the future.
The fenced code block pattern
/ ^ {0,3}(([~`]){3,})\s*?((\S+?)(?:\?\S*)?)?\s*?\n (.*?) ^ {0,3}\1\2*\s*?\n /mx.freeze
Instance Method Summary collapse
-
#initialize(source, options) ⇒ Parser
constructor
private
Create a Parser instance.
Constructor Details
#initialize(source, options) ⇒ Parser
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
Create a TTY::Markdown::Parser instance
44 45 46 47 |
# File 'lib/tty/markdown/parser.rb', line 44 def initialize(source, ) super replace_fenced_codeblock_parser end |