js-markdown-extra
js-markdown-extra copied to clipboard
Add source line number
How difficult would it be to add to each generated element, the source line number ? With this information, I could automatically sync the scroll of the editor and the preview in a Markdown editor.
The source line number could be added as a class, for example: class="src-line28"
. Or as a data attribute: data-src-line="28"
.
I want to keep similarity to original PHP version in this project. Sorry, I can't answer something good...