Class: Kramdown::Parser::MdocsKramdown

Inherits:
GitlabKramdown
  • Object
show all
Includes:
MdocsKramdown::Parser::FencedAdmonitions, MdocsKramdown::Parser::FencedCollapsibleAdmonitions
Defined in:
lib/kramdown/parser/mdocs_kramdown.rb

Constant Summary

Constants included from MdocsKramdown::Parser::FencedCollapsibleAdmonitions

MdocsKramdown::Parser::FencedCollapsibleAdmonitions::FENCED_COLLAPSIBLE_ADMONITIONS_MATCH, MdocsKramdown::Parser::FencedCollapsibleAdmonitions::FENCED_COLLAPSIBLE_ADMONITIONS_START

Constants included from MdocsKramdown::Parser::FencedAdmonitions

MdocsKramdown::Parser::FencedAdmonitions::FENCED_ADMONITIONS_MATCH, MdocsKramdown::Parser::FencedAdmonitions::FENCED_ADMONITIONS_START

Instance Method Summary collapse

Methods included from MdocsKramdown::Parser::FencedCollapsibleAdmonitions

included, #parse_fenced_collapsible_admonitions, #parse_inner_alert_content

Methods included from MdocsKramdown::Parser::FencedAdmonitions

included, #parse_fenced_admonitions, #parse_inner_alert_content

Constructor Details

#initialize(source, options) ⇒ MdocsKramdown

Returns a new instance of MdocsKramdown.



9
10
11
12
13
14
# File 'lib/kramdown/parser/mdocs_kramdown.rb', line 9

def initialize(source, options)
  super

  prepend_block_parsers(:fenced_admonitions)
  prepend_block_parsers(:fenced_collapsible_admonitions)
end