From 063848b560f725d2fab2ea26188c68a0102f3ee6 Mon Sep 17 00:00:00 2001 From: Andreas Wegscheider Date: Sun, 13 Oct 2024 22:45:33 +0200 Subject: [PATCH] tests: add markup inside verbatim --- src/lib.rs | 1 + .../rust_norg__tests__inline_verbatim.snap.new | 17 ++++++++++++++++- 2 files changed, 17 insertions(+), 1 deletion(-) diff --git a/src/lib.rs b/src/lib.rs index d68f79a..0a202b6 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -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") diff --git a/src/snapshots/rust_norg__tests__inline_verbatim.snap.new b/src/snapshots/rust_norg__tests__inline_verbatim.snap.new index e5ef222..ef69353 100644 --- a/src/snapshots/rust_norg__tests__inline_verbatim.snap.new +++ b/src/snapshots/rust_norg__tests__inline_verbatim.snap.new @@ -1,6 +1,6 @@ --- source: src/lib.rs -assertion_line: 587 +assertion_line: 588 expression: examples --- - - Paragraph: @@ -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: /