Skip to content

Commit

Permalink
tests: add markup inside verbatim
Browse files Browse the repository at this point in the history
  • Loading branch information
awegsche committed Oct 13, 2024
1 parent aaffde8 commit 063848b
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 1 deletion.
1 change: 1 addition & 0 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -577,6 +577,7 @@ mod tests {
"some text `inline verbatim`",
"`verbatim at start`",
"{/ some_link.txt}[with `inline verbatim` in anchor]",
"`*markup* /inside/ /-verbatim-/`",
]
.into_iter()
.map(|example| example.to_string() + "\n")
Expand Down
17 changes: 16 additions & 1 deletion src/snapshots/rust_norg__tests__inline_verbatim.snap.new
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
source: src/lib.rs
assertion_line: 587
assertion_line: 588
expression: examples
---
- - Paragraph:
Expand Down Expand Up @@ -40,3 +40,18 @@ expression: examples
- Token: Whitespace
- Token:
Text: anchor
- - Paragraph:
- InlineVerbatim:
- Special: "*"
- Text: markup
- Special: "*"
- Whitespace
- Special: /
- Text: inside
- Special: /
- Whitespace
- Special: /
- Special: "-"
- Text: verbatim
- Special: "-"
- Special: /

0 comments on commit 063848b

Please sign in to comment.