-
-
Notifications
You must be signed in to change notification settings - Fork 916
Closed as not planned
Labels
👎 phase/noPost cannot or will not be acted onPost cannot or will not be acted on🙋 no/questionThis does not need any changesThis does not need any changes
Description
Initial checklist
- I read the support docs
- I read the contributing guide
- I agree to follow the code of conduct
- I searched issues and discussions and couldn’t find anything (or linked relevant results below)
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.
Metadata
Metadata
Assignees
Labels
👎 phase/noPost cannot or will not be acted onPost cannot or will not be acted on🙋 no/questionThis does not need any changesThis does not need any changes