class

Xerp::Adapters::MarkdownAdapter

Inherits Xerp::Adapters::Adapter < Reference < Object

Adapter that creates blocks based on Markdown headings.

Constants

HEADING_PATTERN = /^(\#{1,6})\s+(.*)$/

Instance methods

build_blocks(lines : Array(String)) : AdapterResult

Builds blocks from an array of lines. Lines are 0-indexed in the array.

Source
file_type

Returns the file type string for this adapter.

Source