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 6f40082 commit 0099ec3Copy full SHA for 0099ec3
src/librustdoc/html/markdown.rs
@@ -168,9 +168,7 @@ impl<'a> Line<'a> {
168
// then reallocate to remove it; which would make us return a String.
169
fn map_line(s: &str) -> Line<'_> {
170
let trimmed = s.trim();
171
- if trimmed.starts_with("##") {
172
- Line::Shown(Cow::Owned(s.replacen("##", "#", 1)))
173
- } else if let Some(stripped) = trimmed.strip_prefix("# ") {
+ if let Some(stripped) = trimmed.strip_prefix("# ") {
174
// # text
175
Line::Hidden(stripped)
176
} else if trimmed == "#" {
0 commit comments