project_note
Clone
https://git.tahinli.com/Tahinli/project_note.git
0 watching0 forksRust3.6 MiBc49f5e7Tahinli1 month ago2 commits
| 1 | //! Node and mark names of the note layout, and the text style expand rules. |
| 2 | |
| 3 | use ; |
| 4 | |
| 5 | pub const NODE_DOC: &str = "doc"; |
| 6 | pub const NODE_PARAGRAPH: &str = "paragraph"; |
| 7 | pub const NODE_HEADING: &str = "heading"; |
| 8 | pub const NODE_CODE_BLOCK: &str = "code_block"; |
| 9 | pub const NODE_BLOCKQUOTE: &str = "blockquote"; |
| 10 | pub const NODE_HORIZONTAL_RULE: &str = "horizontal_rule"; |
| 11 | pub const NODE_BULLET_LIST: &str = "bullet_list"; |
| 12 | pub const NODE_ORDERED_LIST: &str = "ordered_list"; |
| 13 | pub const NODE_LIST_ITEM: &str = "list_item"; |
| 14 | pub const NODE_HARD_BREAK: &str = "hard_break"; |
| 15 | pub const NODE_IMAGE: &str = "image"; |
| 16 | |
| 17 | pub const MARK_STRONG: &str = "strong"; |
| 18 | pub const MARK_EM: &str = "em"; |
| 19 | pub const MARK_CODE: &str = "code"; |
| 20 | pub const MARK_LINK: &str = "link"; |
| 21 | |
| 22 | /// Expand rules of every mark key: inline marks grow at their end like ProseMirror's. |
| 23 | |
| 24 | |
| 25 | |
| 26 | |
| 27 | |
| 28 | |
| 29 | |
| 30 | |
| 31 | |
| 32 | |
| 33 | |
| 34 | |
| 35 | |
| 36 | |
| 37 | |
| 38 | |
| 39 | |
| 40 | |
| 41 | |
| 42 | |
| 43 |