fixes list again
This commit is contained in:
parent
269a844a68
commit
f8fa3ec924
@ -197,7 +197,7 @@ export const buildOnlyDefaultElements = () => {
|
|||||||
// list
|
// list
|
||||||
registerIdentifier(
|
registerIdentifier(
|
||||||
"list",
|
"list",
|
||||||
/(?<=\n\n|^) *-\s([\s\S]*?)(?=\n\n|$)/g,
|
/(?<=\n\n?|^) *-\s([\s\S]*?)(?=\n\n|$)/g,
|
||||||
(s, rx) => {
|
(s, rx) => {
|
||||||
return {
|
return {
|
||||||
content: s.match(new RegExp(rx, ""))?.at(0) || "Unable to parse list",
|
content: s.match(new RegExp(rx, ""))?.at(0) || "Unable to parse list",
|
||||||
|
@ -1,11 +1,4 @@
|
|||||||
|
|
||||||
1. hello
|
|
||||||
2. everybody
|
|
||||||
3. my
|
|
||||||
4. name
|
|
||||||
5. is
|
|
||||||
6. welcome
|
|
||||||
|
|
||||||
- hello
|
- hello
|
||||||
- everybody
|
- everybody
|
||||||
- yes you
|
- yes you
|
||||||
@ -13,3 +6,10 @@
|
|||||||
- name
|
- name
|
||||||
- is
|
- is
|
||||||
- welcome
|
- welcome
|
||||||
|
|
||||||
|
1. hello
|
||||||
|
2. everybody
|
||||||
|
3. my
|
||||||
|
4. name
|
||||||
|
5. is
|
||||||
|
6. welcome
|
Loading…
x
Reference in New Issue
Block a user