mdoc.internal.markdown.MdocParserExtension
Creates a text node with the value of a site variable.
Creates a text node with the value of a site variable.
Using PrefixedSubSequence
and then removing suffix is the only way I found to simulate
replace
. Converting from String
to BasedSequence
via stringToCharSequence
does not
work because Flexmark's Text
only uses the start and end offsets and does not do an
in-place replacement of the contents of the returned sequence. These start and end offsets
select from the original text, not the modified value that we wanted to insert.
Creating a custom node extending ContentNode
or CustomNode
did not help either.