Skip to content

[BUG] Incorrect position of one-line HTML comment tags #23

@Sereja313

Description

@Sereja313

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") []]

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions