We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 36a7aa1 commit 9f237edCopy full SHA for 9f237ed
tests/fuzz.rs
@@ -127,9 +127,24 @@ fn fuzz() -> Result<(), String> {
127
),
128
Ok("<p><</p>".to_string()),
129
"12: mdx: handle invalid mdx without panic (GH-26)"
130
+ )
131
+
132
+ assert_eq!(
133
to_html("[:]:a\n-\na\n-"),
134
"<h2>-\na</h2>",
135
"10: handle link in heading"
136
137
138
139
+ to_html("[:]:a\n-\na\n-"),
140
+ "<h2>-\na</h2>",
141
+ "xx: handle link in heading (GH-22)"
142
+ );
143
144
145
+ to_html("a\n-\n--\na\n-"),
146
+ "<h2>a</h2>\n<h2>--\na</h2>",
147
+ "xx: two setext headings next to each other (GH-22)"
148
);
149
150
Ok(())
0 commit comments