Skip to content

Support for Source Map #919

@atifali

Description

@atifali

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    👎 phase/noPost cannot or will not be acted on🙋 no/questionThis does not need any changes

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions