Skip to content

Commit 7eac4d7

Browse files
betegonclaude
andcommitted
fix(formatters): apply ultracite formatting to stripEscapes line
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent bb23e66 commit 7eac4d7

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/lib/formatters/markdown.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -326,7 +326,8 @@ function renderOneInline(token: Token): string {
326326
// Detect autolinks via link.raw (starts with URL, not "[") and strip artifacts.
327327
const raw = link.raw ?? "";
328328
if (raw.startsWith("http://") || raw.startsWith("https://")) {
329-
const stripEscapes = (s: string) => s.replace(/\\([_*`[\]<>\\])/g, "$1");
329+
const stripEscapes = (s: string) =>
330+
s.replace(/\\([_*`[\]<>\\])/g, "$1");
330331
linkText = stripEscapes(linkText);
331332
href = stripEscapes(href);
332333
}

0 commit comments

Comments
 (0)