marktext/docs/dev/code/BLOCK_ADDITION_PROPERTY.md
2019-10-28 11:59:51 +08:00

168 lines
1.9 KiB
Markdown
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

### Block addition properties and its value
##### 1. span
- functionType
- languageInput
- footnoteInput
- codeContent (used in code block)
- cellContent (used in table cell, it's parent must be th or td block)
- atxLine (can not contain soft line break and hard line break use in atx heading)
- thematicBreakLine (can not contain soft line break and hard line break use in thematic break)
- paragraphContent (defaultValue use in paragraph and setext heading)
- lang - only when it's functionType is `codeContent`
- All prismjs support language or empty string
##### 2. div
used for preview `block math`, `mermaid`, `flowchart`, `vega-lite`, `sequence` and `html block`.
- functionType
- multiplemath
- mermaid
- flowchart
- vega-lite
- sequence
- html
##### 3. figure
The container block of `table`, `html`, `block math`, `mermaid`,`flowchart`,`vega-lite`,`sequence`.
- functionType
- table
- footnote
- html
- multiplemath
- mermaid
- flowchart
- vega-lite
- sequence
##### 4. pre
Used for `html`,`block math`,`mermaid`,`flowchart`,`vega-lite`,`sequence` `code block`.
- functionType
- html
- multiplemath
- mermaid
- flowchart
- vega-lite
- sequence
- fencecode
- indentcode
- frontmatter
- lang
- all prismjs support language or empty string
##### 5. code
- lang
- all prismjs support language or empty string
##### ul
- listType
- bullet
- task
##### ol
- listType
- order
- start
- 0-999999999
##### li
- listItemType
- order
- bullet
- task
- isLooseListItem
- true
- false
- bulletMarkerOrDelimiter
- bulletMarker`-`, `+`, `*`
- Delimiter `)`, `.`
##### h1~6
- headingStyle
- atx
- setext
- marker - only setext heading has marker
##### input
- checked
- true
- false
##### table
- row
- column
##### th/td
- align
- column