diff options
| author | monikahedman <monika_hedman@brown.edu> | 2019-08-26 09:56:12 -0400 |
|---|---|---|
| committer | monikahedman <monika_hedman@brown.edu> | 2019-08-26 09:56:12 -0400 |
| commit | a085e811d0b1332619ae9117a4dbf13316a82730 (patch) | |
| tree | 528479d5a9868f50544cc765b2f3acd8187935b5 /src/client/util/RichTextRules.ts | |
| parent | ee5f4ad5348f10d9e76eaf2962295a6968e7a4d0 (diff) | |
| parent | 939074601016a674d6a01922bab1383684fce63f (diff) | |
Merge branch 'master' of https://github.com/browngraphicslab/Dash-Web into monika_linking
Diffstat (limited to 'src/client/util/RichTextRules.ts')
| -rw-r--r-- | src/client/util/RichTextRules.ts | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/client/util/RichTextRules.ts b/src/client/util/RichTextRules.ts index 3b8396510..89933650b 100644 --- a/src/client/util/RichTextRules.ts +++ b/src/client/util/RichTextRules.ts @@ -26,6 +26,14 @@ export const inpRules = { match => ({ order: +match[1] }), (match, node) => node.childCount + node.attrs.order === +match[1] ), + // 1. ordered list + wrappingInputRule( + /^([a-z]+)\.\s$/, + schema.nodes.alphabet_list, + match => ({ order: +match[1] }), + (match, node) => node.childCount + node.attrs.order === +match[1] + ), + // * bullet list wrappingInputRule(/^\s*([-+*])\s$/, schema.nodes.bullet_list), |
