Hello, Right now I am trying to implement the scroll sync feature for a markdown editor. Suppose I have the **.md** file with content below ``` ### Hello this is a markdown file ``` which produces the html code ``` html Hello this is a markdown file ``` So I want to map the generated html dom element with my markdown content. for example, I want the html code to be ``` html Hello this is a markdown file ``` where `data-line="0"` in `Hello` is from the **0th** line of the markdown, which is `### Hello`. `data-line="1"` in `this is a markdown file` is from the **1th** line of the markdown, which is `this is a markdown file`. Basically, I want to make a sourcemap (I am not so sure if I am using the correct term though) Could please give me some suggestions how to do it. Thank you.
Activity
Feder1co5oave commentedon Jan 10, 2018
See #680