针对markdown格式有限的支持
Block
01 Syntax
02 Properties
| Name | Overloads | Summary |
|---|---|---|
| type | 1 | 块级语法类型,统一小写。当前支持的完整集合: heading(h) / paragraph(p) / code / list(li) / blockquote / table / hr(horizontal-rule) / image(img) / html(raw) / math / link / tasklist / footnote / defl… |
| level | 1 | heading level if type = heading |
| content | 1 | the text content of heading/paragraph/code/blockquote |
| language | 1 | the language code if type = code, example as bash/r/vbnet/c-sharp/python/php |
| ordered | 1 | is ordered list if type = list |
| items | 1 | the list items for type = list |
| headers | 1 | the table headers for type = table |
| alignments | 1 | the table header alignments, value could be left|right|center |
| rows | 1 | the table rows for type = table, each block elements inside this array should be list type, list items will be used as table row cells |
| url | 1 | the image source url if type = image/img |
| alt | 1 | the alternative text if type = image/img |
| title | 1 | the optional title (hover tip) if type = image/img or link |
| checked | 1 | tasklist only: 与 Block.items 平行排列,标记每一项是否被勾选。 当该字段为 Nothing 时,渲染时默认所有项均未勾选。 |
| id | 1 | footnote only: 脚注的唯一标识,例如 "1" / "note"。 在 markdown 中表现为 [^id]: content,在 html 中表现为 id="fn-id"。 |
| terms | 1 | deflist only: 术语列表(对应 html 的 <dt>)。 与 Block.definitions 平行排列。 |
| definitions | 1 | deflist only: 定义列表(对应 html 的 <dd>),与 Block.terms 平行排列。 |
03 Members
块级语法类型,统一小写。当前支持的完整集合: heading(h) / paragraph(p) / code / list(li) / blockquote / table / hr(horizontal-rule) / image(img) / html(raw) / math / link / tasklist / footnote / deflist
heading level if type = heading
the text content of heading/paragraph/code/blockquote
the language code if type = code, example as bash/r/vbnet/c-sharp/python/php
is ordered list if type = list
the list items for type = list
the table headers for type = table
the table header alignments, value could be left|right|center
the table rows for type = table, each block elements inside this array should be list type, list items will be used as table row cells
the image source url if type = image/img
the alternative text if type = image/img
the optional title (hover tip) if type = image/img or link
tasklist only: 与 Block.items 平行排列,标记每一项是否被勾选。 当该字段为 Nothing 时,渲染时默认所有项均未勾选。
footnote only: 脚注的唯一标识,例如 "1" / "note"。 在 markdown 中表现为 [^id]: content,在 html 中表现为 id="fn-id"。
deflist only: 术语列表(对应 html 的 <dt>)。 与 Block.definitions 平行排列。
deflist only: 定义列表(对应 html 的 <dd>),与 Block.terms 平行排列。