BlockMap
Object Hierarchy:
Description:
public class BlockMap :
MarkerMap
Marker map for block-level markers (headings, HR, lists, fenced code, blockquote, etc.). Used by the parser for handle_block_result().
Content:
Properties:
Creation methods:
Methods:
- public bool check_fenced_newline (ref int chunk_pos, string chunk)
When in fenced code block and not at line start: collect code text up
to next newline (or all remaining).
- public bool handle_block_result (int block_match, string block_lang, FormatType matched_block, int byte_length, int space_skip, ref int chunk_pos, string chunk, int saved_chunk_pos, bool is_end_of_chunks)
Handles block peek result. Caller calls peek() then this. Updates
chunk_pos when a block is consumed.
- public bool handle_fence_result (int fence_result, ref int chunk_pos, string chunk)
Handles fenced-code closing fence result. Caller calls peekFencedEnd()
then this. Updates chunk_pos when consuming input.
- public int peek (string chunk, int chunk_pos, bool is_end_of_chunks, FormatType last_line_block, out string lang_out, out FormatType matched_block, out int byte_length, out int space_skip)
Block-level peek: skips leading spaces then base.eat(); on no match
with indent in list, delegates to listmap. Handles fenced code (newline/lang), table, etc.
- public int peekFencedEnd (string chunk, ref int chunk_pos, FormatType fence_type, bool is_end_of_chunks)
Checks if we're at a closing fenced code fence. Uses fence_open so the
closing line must start with the same whole match that opened the block (e.g. " ```")
Inherited Members:
All known members inherited from class Markdown.MarkerMap