There seems to be some kind of bug with the single-line HTML comment tags. The values of the endLine and endColumn fields are always incorrect for them.
Here is an example:
commonmarkToNode [] [] $ fromString "<!-- comment -->"
produces
Node (Just (PosInfo {startLine = 1, startColumn = 1, endLine = 1, endColumn = 16})) DOCUMENT [Node (Just (PosInfo {startLine = 1, startColumn = 1, endLine = 0, endColumn = 0})) (HTML_BLOCK "<!-- comment -->\n") []]
There seems to be some kind of bug with the single-line HTML comment tags. The values of the
endLineandendColumnfields are always incorrect for them.Here is an example:
produces