js-markdown-extra icon indicating copy to clipboard operation
js-markdown-extra copied to clipboard

Add source line number

Open jlgrall opened this issue 10 years ago • 1 comments

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".

jlgrall avatar Mar 24 '14 21:03 jlgrall

I want to keep similarity to original PHP version in this project. Sorry, I can't answer something good...

tanakahisateru avatar Apr 29 '14 16:04 tanakahisateru