Initial checklist
Problem
An option to toggle the source map for the rendered Markdown would be useful in cases where the source of each rendered HTML element is needed for eg: when implementing scroll syncing
Current solutions
As far as I can tell, this does not currently exist in this library. However, there are libraries that support such a feature for eg: https://www.npmjs.com/package/markdown-it-source-map
Proposed solutions
When converting Markdown to HTML for the preview, include data attributes or classes in the rendered HTML elements that indicate their corresponding source line numbers.
Initial checklist
Problem
An option to toggle the source map for the rendered Markdown would be useful in cases where the source of each rendered HTML element is needed for eg: when implementing scroll syncing
Current solutions
As far as I can tell, this does not currently exist in this library. However, there are libraries that support such a feature for eg: https://www.npmjs.com/package/markdown-it-source-map
Proposed solutions
When converting Markdown to HTML for the preview, include data attributes or classes in the rendered HTML elements that indicate their corresponding source line numbers.