From b4ecd177591a37424e792599ae23e97bfb94bb55 Mon Sep 17 00:00:00 2001 From: Yuki Hattori Date: Sat, 5 Aug 2023 03:26:05 +0900 Subject: [PATCH 1/2] Apply VS Code's link renderer when rendering Markdown in preview panel --- src/extension.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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, From c20e16d56da3092920e5884f80c305796be682f5 Mon Sep 17 00:00:00 2001 From: Yuki Hattori Date: Sat, 5 Aug 2023 03:41:29 +0900 Subject: [PATCH 2/2] [ci skip] Update CHANGELOG.md --- CHANGELOG.md | 4 ++++ 1 file changed, 4 insertions(+) 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