From f8fa3ec9241d0cc5b59867a51bafb320e81224d6 Mon Sep 17 00:00:00 2001 From: Emma Date: Mon, 5 Aug 2024 03:54:21 -0600 Subject: [PATCH] fixes list again --- lib/tcmd/TokenIdentifiers.tsx | 2 +- md/help articles/test.md | 16 ++++++++-------- 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/lib/tcmd/TokenIdentifiers.tsx b/lib/tcmd/TokenIdentifiers.tsx index b81372b..06e0604 100644 --- a/lib/tcmd/TokenIdentifiers.tsx +++ b/lib/tcmd/TokenIdentifiers.tsx @@ -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", diff --git a/md/help articles/test.md b/md/help articles/test.md index ba50620..1acaf3b 100644 --- a/md/help articles/test.md +++ b/md/help articles/test.md @@ -1,15 +1,15 @@ -1. hello -2. everybody -3. my -4. name -5. is -6. welcome - - hello - everybody - yes you - my - name - is -- welcome \ No newline at end of file +- welcome + +1. hello +2. everybody +3. my +4. name +5. is +6. welcome \ No newline at end of file