You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Support for including source spans on block and inline nodes (#1):
Answer for "Where in the source input (line/column position and length) does this node come from?"
Useful for things like editors that want to keep the input and rendered output scrolled to the same lines,
or start editing on the node that was selected.
Use includeSourceSpans on Parser.Builder to enable,
either with IncludeSourceSpans.BLOCKS or IncludeSourceSpans.BLOCKS_AND_INLINES
Read data with Node.getSourceSpans
Note that enabling this has a small performance impact on parsing (about 10%)
Changed
In order to support source spans (see above), a few of the extension
APIs changed. It should only affect users implementing their own
extensions. See the Javadoc to see what changed.
YAML front matter extension: Support dots in key names