fixes list again

This commit is contained in:
Emmaline Autumn 2024-08-05 03:54:21 -06:00
parent 269a844a68
commit f8fa3ec924
2 changed files with 9 additions and 9 deletions

View File

@ -197,7 +197,7 @@ export const buildOnlyDefaultElements = () => {
// list
registerIdentifier(
"list",
/(?<=\n\n|^) *-\s([\s\S]*?)(?=\n\n|$)/g,
/(?<=\n\n?|^) *-\s([\s\S]*?)(?=\n\n|$)/g,
(s, rx) => {
return {
content: s.match(new RegExp(rx, ""))?.at(0) || "Unable to parse list",

View File

@ -1,15 +1,15 @@
1. hello
2. everybody
3. my
4. name
5. is
6. welcome
- hello
- everybody
- yes you
- my
- name
- is
- welcome
- welcome
1. hello
2. everybody
3. my
4. name
5. is
6. welcome