Parser
Object Hierarchy:
Description:
public class Parser
Parser for markdown text that calls specific callbacks on Render.
This is a placeholder implementation. Full parser implementation will be specified in a separate plan.
Content:
Properties:
Creation methods:
Methods:
- public void add (string in_chunk, bool is_end_of_chunks = false)
Parses text and calls specific callbacks on Render. Uses peekFormat to
detect format sequences.
- public string add_html (string chunk)
- public void do_block (bool is_start, FormatType block_type, string lang = "", string fence_indent = "", int list_indent = 0)
Handles block start/end by calling the appropriate renderer method.
- public void flush ()
- public int peekHTML (string chunk, int chunk_pos, bool is_end_of_chunks)
Checks if the character at the given position is a valid HTML tag
start.
- public void process_inline (string text)
Parse a string as inline only (no block handling). Uses
formatmap.eat(), on_text, got_format, add_html; escape and code-span literal as in main parser; at end pops state_stack and emits
closing format callbacks. Used for link text and table cells.
- public void start ()
Starts/initializes the parser for a new block.