Replies: 2 comments
-
I found a way
this will generate something like
7-11 are the offset on original md file. thanks |
Beta Was this translation helpful? Give feedback.
-
@moacirrf, yes that is the way to do it. The library was originally created to have tracking of source position through the AST and to rendered HTML and re-formatted markdown. This is also the reason why it is slower than other implementations and may have a bit more overhead. BTW, it is customary to set all options at the same time and just pass them where needed. Any options not used by a particular component will be ignored, in this case source position attribute of the HtmlReneder will be ignored by the parser. |
Beta Was this translation helpful? Give feedback.
-
Hi,
First all, thank you for the awesome job that was made on Flexmark-java.
There is a way to keep track of the converted data?
For example
# Title
will generate
<h1>Title</h1>
I would like to know if have some way to store the both data, because i need to ensure that
<h1> Title </h1>
was generated from# Title.
I'm working on a Netbeans Plugin and i would like to improve source and preview window.
Thanks
Beta Was this translation helpful? Give feedback.
All reactions