about summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
authorMatthias Krüger <matthias.krueger@famsik.de>2022-12-11 23:36:48 +0100
committerGitHub <noreply@github.com>2022-12-11 23:36:48 +0100
commit427ea68278099ef9bf7cd474f76bc6a519c9b3dc (patch)
treead813bac9104e2fefc0825e065a646b4c3d332bd /src
parent79f99e7969846f1e64b653757c73ddbe6da74df5 (diff)
parent6e583ffbd9a12e4bcfbf3f066fb8dd1e792d9883 (diff)
downloadrust-427ea68278099ef9bf7cd474f76bc6a519c9b3dc.tar.gz
rust-427ea68278099ef9bf7cd474f76bc6a519c9b3dc.zip
Rollup merge of #105560 - GuillaumeGomez:extend-rustdoc-hashtag-prep-line, r=notriddle
Extend rustdoc hashtag prepended line test

Follow-up of https://github.com/rust-lang/rust/pull/105539. This case wasn't checked so better add it.

r? `@notriddle`
Diffstat (limited to 'src')
-rw-r--r--src/librustdoc/html/markdown/tests.rs8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/librustdoc/html/markdown/tests.rs b/src/librustdoc/html/markdown/tests.rs
index 68b31a6ee08..5878c58264e 100644
--- a/src/librustdoc/html/markdown/tests.rs
+++ b/src/librustdoc/html/markdown/tests.rs
@@ -345,4 +345,12 @@ fn test_ascii_with_prepending_hashtag() {
 #..#.####.####.####..##..
 </code></pre></div>",
     );
+    t(
+        r#"```markdown
+# hello
+```"#,
+        "<div class=\"example-wrap\"><pre class=\"language-markdown\"><code>\
+# hello
+</code></pre></div>",
+    );
 }