-
-
Notifications
You must be signed in to change notification settings - Fork 373
Closed
Labels
remark-stringify🐛 type/bugThis is a problemThis is a problem👶 semver/patchThis is a backwards-compatible fixThis is a backwards-compatible fix💪 phase/solvedPost is donePost is done🗄 area/interfaceThis affects the public interfaceThis affects the public interface
Description
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
- Parse this paragraph:
1\. test - 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) - 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. testMetadata
Metadata
Assignees
Labels
remark-stringify🐛 type/bugThis is a problemThis is a problem👶 semver/patchThis is a backwards-compatible fixThis is a backwards-compatible fix💪 phase/solvedPost is donePost is done🗄 area/interfaceThis affects the public interfaceThis affects the public interface