From 6361c1e5203768a2b73e8091d7a0ced59235bac0 Mon Sep 17 00:00:00 2001 From: kotaindah55 Date: Mon, 3 Feb 2025 20:51:53 +0200 Subject: [PATCH] fix: fix regexp causing strikethrough mess up the parser --- src/editor-mode/parser/regexps/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/editor-mode/parser/regexps/index.ts b/src/editor-mode/parser/regexps/index.ts index ee1aa66..952dded 100644 --- a/src/editor-mode/parser/regexps/index.ts +++ b/src/editor-mode/parser/regexps/index.ts @@ -1,7 +1,7 @@ import { ShifterNodeConfigs } from "src/editor-mode/parser/configs" export const SEMANTIC_INTERFERER_RE = /(?:codeblock|html|math)-(?:begin|end)|comment-(?:start|end)|cdata|tag$/; -export const SKIPPED_NODE_RE = /table|code|formatting|escape|html|math|tag|url|barelink|atom|comment|string|meta|frontmatter|hr/; +export const SKIPPED_NODE_RE = /table|code|formatting|escape|html|math|tag|url|barelink|atom|comment|string|meta|frontmatter|hr(?!\w)/; export const COLOR_TAG_RE = /\{[a-z0-9-]+\}/iy; export const SHIFTER_RE = (() => { let queries = "";