Closed
Description
#Headers don't seem to get recognized when the header is preceded by some text and a following code block contains hidden lines (///# ...
).
Here's a minimal example:
/// Removing this very line makes it render correctly.
///
/// # I will not be rendered correctly
///
/// ```
///# fn foo() {} // A hidden line like this needs to exist
/// ```
pub fn some_item() {}
And this is what it looks like:
I've set up a repository with this example to play around with here: https://github.com/panicbit/rustdoc_bug_33771
cc @Manishearth