-
-
Notifications
You must be signed in to change notification settings - Fork 61
Description
I am new to Panwriter (using 0.8.10 based on Pandoc 3.9, both on Windows and MacOS), and even after carefully reading manuals on Pandoc and Panwriter, I do not understand why links in the Panwriter preview do only work if I specify an identifier right of the heading as header-attribute.
The file I am using as test is quite large and can be displayed with working links perfectly in Google Chrome with the markdown plugin. According to the manual I also tried all variants of specifying
---
title: my title
from: markdown+auto_identifiers
---
be it in the document directly as well as in the different places for file default.yaml (working dir and platform-specific PanWriterUserData). No link worked unless I added the correct target id to each heading in curly braces, which worked even without specifying the provided Pandoc extension.
A simple test case showing the issue is:
# Title
Go to [Level three](#level-three)
lore ipsum dolet 1
lore ipsum dolet 1
## Heading level two
lore ipsum dolet 2
lore ipsum dolet 2
### Level three
lore ipsum dolet 3
lore ipsum dolet 3
Go to [Top](#title)
Only if I manually add the heading ids {#title} and {#level-three} behind the respective heading, the links work and change the position inside of the preview window (you have reduce the height to notice the effect). Adding only one heading id works for that link, but does not change general behaviour for automatic ids.
The behaviour described is independent of the view mode (split view or preview only).
Now I am really curious what I could do to make all links work, because I cannot imagine that this behaviour is intended or result of something accidentally broken. BTW: I did not find any documentation about the meaning of or restriction for the value specified in the yaml title, but tried several variants of that name too without noticing a change.