-
Notifications
You must be signed in to change notification settings - Fork 12.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
rustdoc: Markdown headers don't get recognized in certain cases #33771
Comments
There are other similar issues reported about the markdown parser (can't find them however...). Thanks for reporting one more. 😃 |
@GuillaumeGomez, it looks like the current Rustdoc Markdown parser is using Hoedown, which hasn't been updated in a while. Is there any interest in switching to a different Markdown parser? It seems to me that writing a good pure-Rust markdown parser that could be used in Rustdoc would also be more broadly useful. |
Well there's pulldown-cmark, used by mdBook. |
@AndrewBrinker: If you find one or write one, then sure. |
I would be very interested in moving to pull down-cmark or something else CommonMark compliant. On Jun 10, 2016, 11:58 +0300, Guillaume Gomeznotifications@github.com, wrote:
|
What would be the plan here? I think making a full switch on the first time would not be a good idea, so maybe two backends (hoedown and pulldown-cmark) should work together for a few time. What would be the better way to have both exposed? A rustdoc flag? |
I am not 100% sure, but I'm also not 100% sure that it's that big a deal;
it's only in edge cases that there are differences. We'd have to experiment
and make sure.
|
Opened an issue for moving to pulldown-cmark: #38400 |
Within the last couple of weeks, I've seen this bug appear quite frequently. (I have never seen it before.) As in, a significant number of headers in my docs aren't rendering properly as described in the OP. |
I'd prefer to wait for the switch to pulldown to be officially complete to check if we still have this issue because it seems to be very specific to hoedown. |
Then let's close this issue once the switch to pulldown is complete. |
#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:
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
The text was updated successfully, but these errors were encountered: