Skip to content

Annotate the parse tree of lists #9912

Description

@pmario
  1. The full row marker of each item (e.g. *#> in mixed nesting, or
    which of the description-list forms ;/: produced an item). The
    tag nesting alone cannot always reproduce the exact marker string.
    Annotation: rowMarker (the matched marker text) on each item.
[
    {
        "type": "element",
        "tag": "ul",
        "children": [
            {
                "type": "element",
                "tag": "li",
                "children": [
                    {
                        "type": "text",
                        "text": "level 1",
                        "start": 2,
                        "end": 9
                    }
                ],
                "start": 0,
                "end": 9,
                "rowMarker": "*"     <-- New marker for easy serialising
            }
        ],
        "start": 0,
        "end": 9,
        "rule": "list",      <-- All lists have rule: "list"
        "blockPosition": true
    }
]

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions