Skip to content

Significant period isn't escaped on stringify #521

@cl8n

Description

@cl8n

Subject of the issue

Text that appears like an ordered list item will be stringified as a list, even if it was escaped.

Steps to reproduce

  1. Parse this paragraph:
    1\. test
  2. The parse tree should look like this, no issues here:
    root[1] (1:1-1:9, 0-8)
    └─ paragraph[3] (1:1-1:9, 0-8)
       ├─ text: "1" (1:1-1:2, 0-1)
       ├─ text: "." (1:2-1:4, 1-3)
       └─ text: " test" (1:4-1:9, 3-8)
    
  3. Stringify

Expected behaviour

The output is identical to the markdown in step 1

Actual behaviour

The escape is removed, and now the markdown represents a list instead of a paragraph

1. test

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions