Module: Coradoc::Markdown::Parser::FrontmatterParser
- Defined in:
- lib/coradoc/markdown/parser/frontmatter_parser.rb
Overview
Markdown frontmatter extractor.
Delegates to the shared Coradoc::CoreModel::FrontmatterBlock::TextSplitter — the single source of truth for the ‘—n…n—n` convention (DRY). Format gems retain a local parser module for discoverability and as the seam for any format-specific extensions should they arise.
Constant Summary collapse
- Result =
Coradoc::CoreModel::FrontmatterBlock::TextSplitter::Result
Class Method Summary collapse
Class Method Details
.call(text) ⇒ Object
14 15 16 |
# File 'lib/coradoc/markdown/parser/frontmatter_parser.rb', line 14 def call(text) Coradoc::CoreModel::FrontmatterBlock::TextSplitter.call(text) end |