FormatMap
Object Hierarchy:
Description:
public class FormatMap :
MarkerMap
Marker map for inline format markers (bold, italic, code, etc.). Used by the parser for format detection via eat().
Content:
Creation methods:
Methods:
- public int eat_link (string chunk, int chunk_pos, int seq_pos, bool is_end_of_chunks)
Parse and consume a link after the 3-char lead [??. Only eats the
chunk; does not extract strings. Caller uses returned end offset and calls handle_link(chunk, chunk_pos, seq_pos, end_offset).
- public bool handle_format_result (int match_len, FormatType matched_format, unichar c, ref int chunk_pos, ref string str, ref string chunk, bool is_end_of_chunks)
Handles format peek result. Caller calls eat() then this. Updates
chunk_pos, str, chunk when consuming; may set parser.leftover_chunk.
- public void handle_link (string chunk, int chunk_pos, int seq_pos, int end_offset)
Extract verified link data from chunk[chunk_pos..end_offset), then
emit via parser: on_a(true,...), process_inline(link_text), on_a(false,...). seq_pos = byte after the 3-char lead [??; end_offset =
byte after the link (e.g. after ')' for inline, after ']' for reference). Sets is_reference true for reference-style; then href is the
ref label (consumer resolves to URL).
- public int peek_literal (string chunk, int chunk_pos, bool is_end_of_chunks, string is_literal)
Peek for closing backtick delimiter when inside a code span
(is_literal != "").
Inherited Members:
All known members inherited from class Markdown.MarkerMap