You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
sourcepos line numbers don't correspond to file line numbers when there is YAML metadata. Metadata introduces an offset equal to the number of lines of YAML plus any whitespace lines that follow.
This is for pandoc.exe 2.17.0.1.
Example file preview_test.md:
Text
Output of pandoc -f commonmark_x+sourcepos -t native -s ./preview_test.md:
I'm working on a commonmark_x preview extension for VS Code, and so far this has been the only thing interfering with scroll sync between Markdown source and HTML preview. It's possible to try to work around this for now by searching for the ending --- or ... to calculate the offset manually.
The text was updated successfully, but these errors were encountered:
sourcepos
line numbers don't correspond to file line numbers when there is YAML metadata. Metadata introduces an offset equal to the number of lines of YAML plus any whitespace lines that follow.This is for
pandoc.exe 2.17.0.1
.Example file
preview_test.md
:Output of
pandoc -f commonmark_x+sourcepos -t native -s ./preview_test.md
:Modified example:
Modified output:
I'm working on a
commonmark_x
preview extension for VS Code, and so far this has been the only thing interfering with scroll sync between Markdown source and HTML preview. It's possible to try to work around this for now by searching for the ending---
or...
to calculate the offset manually.The text was updated successfully, but these errors were encountered: