RenderBase
Object Hierarchy:
Description:
public abstract class RenderBase : Object
Base abstract class for renderers that use the Parser.
Provides parser setup and callback interface without requiring buffer or mark functionality. Subclasses implement the callback methods to
handle parsed content.
Content:
Properties:
Creation methods:
Methods:
- public virtual void add (string text)
Main method: adds text to be parsed and rendered.
- public void flush ()
Finalizes the current chunk. Call this before starting a new chunk
with add_start to ensure all pending content is processed.
- public virtual void on_a (bool is_start, string href, string title, bool is_reference)
- protected virtual void on_br ()
- public virtual void on_code (bool is_start, string lang, char fence_char)
- protected virtual void on_code_block (bool is_start, string lang)
- protected virtual void on_code_span (bool is_start)
- protected virtual void on_code_text (string text)
- protected virtual void on_del (bool is_start)
- protected virtual void on_em (bool is_start)
- protected virtual void on_entity (string text)
- protected virtual void on_h (bool is_start, uint level)
- protected virtual void on_hr ()
- protected virtual void on_html (bool is_start, string tag, string attributes)
- protected virtual void on_img (string src, string title)
- public virtual void on_li (bool is_start, int list_number = 0, uint space_skip = 0, int task_checked = -1)
List item start/end. list_number: 0 = unordered, 1/2/3… = ordered.
space_skip: spaces before marker. task_checked: -1 = N/A, 0 = unchecked, 1 = checked.
- protected virtual void on_list (bool is_start)
List block start/end (one pair per list; parser uses
do_block(LIST_BLOCK). No per-level signals.
- public virtual void on_node (FormatType type, bool is_start, string s1 = "", string s2 = "", string s3 = "")
Single entry point for string-based callbacks (type, is_start, 0–3
strings). Default implementation switches on type and calls the protected virtual methods.
- public virtual void on_node_int (FormatType type, bool is_start, int v1 = 0)
Entry point for int/uint-based callbacks (type, is_start, one int).
- protected virtual void on_ol (bool is_start, uint indentation)
- protected virtual void on_other (bool is_start, string tag_name)
- protected virtual void on_p (bool is_start)
- protected virtual void on_quote (bool is_start, uint level)
- protected virtual void on_softbr ()
- protected virtual void on_strong (bool is_start)
- protected virtual void on_table (bool is_start)
- protected virtual void on_table_cell (bool is_start, int align)
- protected virtual void on_table_hcell (bool is_start, int align)
- protected virtual void on_table_row (bool is_start)
- protected virtual void on_task_list (bool is_start, bool is_checked)
- protected virtual void on_text (string text)
- protected virtual void on_u (bool is_start)
- protected virtual void on_ul (bool is_start, uint indentation)
- public void parse (string text)
Parse a full document in one call: equivalent to start(), add(text)
with end-of-chunks, flush(). Use when the entire markdown content is already in memory.
- public void start ()
Starts/initializes the parser for a new block.
Inherited Members:
All known members inherited from class GLib.Object
- @get
- @new
- @ref
- @set
- add_toggle_ref
- add_weak_pointer
- bind_property
- connect
- constructed
- disconnect
- dispose
- dup_data
- dup_qdata
- force_floating
- freeze_notify
- get_class
- get_data
- get_property
- get_qdata
- get_type
- getv
- interface_find_property
- interface_install_property
- interface_list_properties
- is_floating
- new_valist
- new_with_properties
- newv
- notify
- notify_property
- ref_count
- ref_sink
- remove_toggle_ref
- remove_weak_pointer
- replace_data
- replace_qdata
- set_data
- set_data_full
- set_property
- set_qdata
- set_qdata_full
- set_valist
- setv
- steal_data
- steal_qdata
- thaw_notify
- unref
- watch_closure
- weak_ref
- weak_unref