aardio 文档

string.markdown.toRtf 库模块帮助文档

string.markdown 成员列表 #

string.markdown.toRtf #

Markdown 转换为 RTF 格式

string.markdown.toRtf() #

将字符串参数 @1 指定的 Markdown 转换并返回为 RTF 格式。
返回值可赋值到 richedit 控件的 rtf 属性查看显示效果。
转换流程: Markdown → HTML(基于 string.markdown) → RTF(基于 string.html.toRtf)
支持: 标题(h1-h6), 粗体, 斜体, 删除线, 行内代码, 代码块,
有序/无序列表(嵌套), 引用块, 链接, 图片(alt), 分隔线, 表格

Markdown 格式