From 6be41c43bb3f1e4d4581dd2b8f190f92e006c5f0 Mon Sep 17 00:00:00 2001 From: "openai-code-agent[bot]" <242516109+Codex@users.noreply.github.com> Date: Sat, 21 Feb 2026 19:44:42 +0000 Subject: [PATCH 1/2] Initial plan From ac678f7ba820964b7d11ddd261254baf6557c632 Mon Sep 17 00:00:00 2001 From: "openai-code-agent[bot]" <242516109+Codex@users.noreply.github.com> Date: Sat, 21 Feb 2026 19:47:13 +0000 Subject: [PATCH 2/2] Fix inline markdown input rule anchors --- apps/desktop/src/editor/Editor.tsx | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/apps/desktop/src/editor/Editor.tsx b/apps/desktop/src/editor/Editor.tsx index a8ce265..5d0c976 100644 --- a/apps/desktop/src/editor/Editor.tsx +++ b/apps/desktop/src/editor/Editor.tsx @@ -53,11 +53,11 @@ function buildInputRules() { ), insertHorizontalRule(), // inline mark rules - markRule(/_([^_]+)_$/, em), // _italic_ - markRule(/\*([^*]+)\*$/, strong), // *bold* - markRule(/~~([^~]+)~~$/, strikethrough), // ~~strikethrough~~ - markRule(/~([^~]+)~$/, strikethrough), // ~strikethrough~ - markRule(/`([^`]+)`$/, code), // `code` + markRule(/_([^_]+)_(?=\s|$)/, em), // _italic_ + markRule(/\*([^*]+)\*(?=\s|$)/, strong), // *bold* + markRule(/~~([^~]+)~~(?=\s|$)/, strikethrough), // ~~strikethrough~~ + markRule(/~([^~]+)~(?=\s|$)/, strikethrough), // ~strikethrough~ + markRule(/`([^`]+)`(?=\s|$)/, code), // `code` ], }); }