We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bb23e66 commit 7eac4d7Copy full SHA for 7eac4d7
src/lib/formatters/markdown.ts
@@ -326,7 +326,8 @@ function renderOneInline(token: Token): string {
326
// Detect autolinks via link.raw (starts with URL, not "[") and strip artifacts.
327
const raw = link.raw ?? "";
328
if (raw.startsWith("http://") || raw.startsWith("https://")) {
329
- const stripEscapes = (s: string) => s.replace(/\\([_*`[\]<>\\])/g, "$1");
+ const stripEscapes = (s: string) =>
330
+ s.replace(/\\([_*`[\]<>\\])/g, "$1");
331
linkText = stripEscapes(linkText);
332
href = stripEscapes(href);
333
}
0 commit comments