diff --git a/CHANGELOG.md b/CHANGELOG.md index 8d018856..2f1b129d 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -8,6 +8,10 @@ - Support `paginate: skip` and `paginate: hold` from Marpit framework [v2.5.0](https://github.com/marp-team/marpit/releases/v2.5.0) - Upgrade Marp CLI to [v3.2.0](https://github.com/marp-team/marp-cli/releases/tag/v3.2.0) ([#427](https://github.com/marp-team/marp-vscode/pull/427)) +### Fixed + +- Apply VS Code's link renderer when rendering Markdown in preview ([#428](https://github.com/marp-team/marp-vscode/pull/428)) + ## v2.6.0 - 2023-04-16 ### Added diff --git a/src/extension.ts b/src/extension.ts index 8ec8d39d..38524475 100644 --- a/src/extension.ts +++ b/src/extension.ts @@ -88,8 +88,9 @@ export function extendMarkdownIt(md: any) { } } - // Use image stabilizer and link normalizer from VS Code + // Use image stabilizer, link renderer and link normalizer from VS Code marp.markdown.renderer.rules.image = md.renderer.rules.image + marp.markdown.renderer.rules.link_open = md.renderer.rules.link_open marp.markdown.normalizeLink = md.normalizeLink // validateLink prefers Marp's default. If overridden by VS Code's it,