Skip to content

Commit

Permalink
fix escaped code return value from walkTokenizer from
Browse files Browse the repository at this point in the history
  • Loading branch information
thooyork committed Jun 25, 2024
1 parent ce33119 commit 35988df
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions common/src/markdown-converter-common.ts
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,9 @@ export abstract class MarkdownConverter {
if (token.type === "image") {
token.href = (await this.f?.(token.href).catch(() => undefined)) ?? token.href;
}
if (token.type === "code") {
token.escaped = true;
}
},
});
marked.use(MarkdownConverter.rendererExtension);
Expand Down

0 comments on commit 35988df

Please sign in to comment.