aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLibravatar Titus Wormer <tituswormer@gmail.com>2022-10-13 12:55:58 +0200
committerLibravatar Titus Wormer <tituswormer@gmail.com>2022-10-13 12:55:58 +0200
commit2bde864146fdee411b8acef0f088ca9544aec8d0 (patch)
treeeda0d23017f36b58dfa9bfe2922b548e07406778
parentbdbd90b7c25d62bc7ebc20246e9f8dffea1228b3 (diff)
downloadmarkdown-rs-2bde864146fdee411b8acef0f088ca9544aec8d0.tar.gz
markdown-rs-2bde864146fdee411b8acef0f088ca9544aec8d0.tar.bz2
markdown-rs-2bde864146fdee411b8acef0f088ca9544aec8d0.zip
Add another test for setext heading underlines after definitions
-rw-r--r--tests/definition.rs8
1 files changed, 7 insertions, 1 deletions
diff --git a/tests/definition.rs b/tests/definition.rs
index c6923bc..5f9c286 100644
--- a/tests/definition.rs
+++ b/tests/definition.rs
@@ -212,9 +212,15 @@ fn definition() -> Result<(), String> {
);
assert_eq!(
+ to_html("[a]: b\n="),
+ "<p>=</p>",
+ "should not support setext heading underlines after definitions (1)"
+ );
+
+ assert_eq!(
to_html("[foo]: /url\n===\n[foo]"),
"<p>===\n<a href=\"/url\">foo</a></p>",
- "should not support setext heading underlines after definitions"
+ "should not support setext heading underlines after definitions (2)"
);
assert_eq!(