dendron
dendron copied to clipboard
Note preview does not render spaces around links in headers
Please select the area your bug applies to. (Multiple selections are Possible. You can leave blank if you're not sure.)
- [ ] Workspace. VSCode workspace, vaults, Intellisense/autocomplete, Dendron settings
- [ ] Lookup. Dendron's Lookup Command
- [x] Views. Dendron Preview, Tree View, Side Panels in the UI
- [ ] Schema. Dendron Schemas
- [ ] Pod. Data import from / export to Dendron
- [ ] Publish. External Site Publish
- [x] Markdown. Markdown features, such as syntax support and features
Describe the bug
When a link is inserted in the middle of a header, the Dendron markdown preview does not render any spaces around the link. For example,
Header with a link in it
appears as
Header with alinkin it
To Reproduce
Steps to reproduce the behavior:
- Inside a note, try to put a hyperlink (
[link](address)) or note wikilink ([[link]]) inside a header, with other words before and/or after the link. - Open the markdown preview and observe how the header is rendered.
Expected behavior
Spaces appear before and after the link in the header.
Screenshots
Raw markdown:
What the preview shows:
Desktop (please complete the following information)
OS: Windows 11 Home 10.0.22000 Browser (if with published websites; include version): N/A Versions (all that apply to bug): Dendron Extension: v0.107.2 VS Code version: 1.70.1 Dendron CLI:
Additional context
Add any other context about the problem here.
Dendron Log file
Thank you for the report. I can reproduce this. We'll let you know when this gets resolved
Reopening because #3403 did only apply the fix to the preview but not to publishing (nextjs-template)
This has been fixed in https://github.com/dendronhq/dendron/pull/3525