| Top |
A SnapdMarkdownNode represents a markdown node extracted from text. See SnapdMarkdownParser for more information.
SnapdMarkdownNodeType
snapd_markdown_node_get_node_type (SnapdMarkdownNode *node);
Get the type of node this is.
Since: 1.48
const gchar *
snapd_markdown_node_get_text (SnapdMarkdownNode *node);
Gets the text associated with this node. This is only present for nodes of type
SNAPD_MARKDOWN_NODE_TYPE_TEXT.
Since: 1.48
GPtrArray *
snapd_markdown_node_get_children (SnapdMarkdownNode *node);
Get the child nodes of this node.
Since: 1.48
Type of markdown node.
|
a piece of text. |
||
|
a paragraph. |
||
|
an unordered list. |
||
|
a list item. |
||
|
a code block. |
||
|
a code span. |
||
|
emphasised text. |
||
|
strongly emphasised text. |
||
|
a URL. |
Since: 1.48
typedef struct _SnapdMarkdownNode SnapdMarkdownNode;
SnapdMarkdownNode is an opaque data structure and can only be accessed using the provided functions.
Since: 1.48
“node-type” property“node-type” SnapdMarkdownNodeType
Type of node.
Flags: Read / Write / Construct Only
Default value: SNAPD_MARKDOWN_NODE_TYPE_TEXT
“text” property“text” gchar *
Text this node contains.
Flags: Read / Write / Construct Only
Default value: NULL