types¶
Option¶
- class cmarkwrapper.types.Option(value)¶
An enumeration.
- OPT_DEFAULT = 0¶
Default options.
- OPT_HARDBREAKS = 4¶
Render “soft break” nodes as hard line breaks.
- OPT_NOBREAKS = 16¶
Render “soft break” nodes as spaces.
- OPT_SMART = 1024¶
Render straight quotes as curly,
---as em dash,--as en dash.
- OPT_SOURCEPOS = 2¶
Render with “sourcepos” information.
- OPT_UNSAFE = 131072¶
渲染时允许原始的HTML和不安全的链接
IterEvent¶
NodeType¶
- class cmarkwrapper.types.NodeType(value)¶
节点类型
- NODE_BLOCK_QUOTE = 2¶
引用块
- NODE_CODE = 14¶
行内代码
- NODE_CODE_BLOCK = 5¶
代码块
- NODE_CUSTOM_BLOCK = 7¶
Block of custom.
- NODE_CUSTOM_INLINE = 16¶
Inline custom.
- NODE_DOCUMENT = 1¶
文档
- NODE_EMPH = 17¶
强调
- NODE_FIRST_BLOCK = 1¶
起始块
- NODE_FIRST_INLINE = 11¶
First inline.
- NODE_HEADING = 9¶
标题
- NODE_HTML_BLOCK = 6¶
原始HTML块
- NODE_HTML_INLINE = 15¶
行内HTML
- NODE_IMAGE = 20¶
图片
- NODE_ITEM = 4¶
List item.
- NODE_LAST_BLOCK = 10¶
结束块
- NODE_LAST_INLINE = 20¶
Last inline.
- NODE_LINEBREAK = 13¶
Line break.
- NODE_LINK = 19¶
链接
- NODE_LIST = 3¶
列表
- NODE_NONE = 0¶
Error status.
- NODE_PARAGRAPH = 8¶
段落
- NODE_SOFTBREAK = 12¶
Soft break.
- NODE_STRONG = 18¶
Strong emphasis.
- NODE_TEXT = 11¶
文本
- NODE_THEMATIC_BREAK = 10¶
Thematic break.