Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.
Sign upMigrate # -> ## in doc headers. #16082
Conversation
This comment has been minimized.
This comment has been minimized.
|
I think it's better to tweak the Rustdoc CSS to make |
This comment has been minimized.
This comment has been minimized.
|
We should be at liberty to declare that here, |
This comment has been minimized.
This comment has been minimized.
|
If this is just changing all headers in rustdocs to '##', leaving no '#', then I prefer to change rustdoc to make this work as expected. Old rustdoc actually silently converted '#' to '##' before translating to markdown if I recall. |
This comment has been minimized.
This comment has been minimized.
|
I'm not a fan of changing Markdown's semantics just because. |
This comment has been minimized.
This comment has been minimized.
|
Also, these are never top-level headers. They're secondary headers. It doesn't make sense to mark up secondary headings as primary headings and then render them as secondary headings. |
This comment has been minimized.
This comment has been minimized.
|
@steveklabnik The reasoning for using |
This comment has been minimized.
This comment has been minimized.
|
Gotcha. Then we're not really doing markdown, we're doing our own kinda-markdown format. Which is a decision we can make, but it should be made explicitly. |
This comment has been minimized.
This comment has been minimized.
|
Well, we already are using a bunch of markdown extensions (appears to be equivalent to GitHub-flavored Markdown + superscripts), so we've already diverged from straight markdown anyway. |
This comment has been minimized.
This comment has been minimized.
|
Extensions are one thing, and GH flavored markdown is basically markdown, since Gruber's governance of markdown is terrible. Changing the way headings work is a pretty significant divergence. |
This comment has been minimized.
This comment has been minimized.
|
Longterm, do we plan to stick to Hoedown, or would we like to migrate to a pure Rust solution for markdown handling? Hoedown doesn't strike me as particularly configurable outside of the ~10 flags they offer (hardcoded special characters as inline string literals is a notable pattern in their source). Maybe they offer some nice plugin utilities, but their documentation is very weak. And of course C-bindings are always a higher security risk that native Rust. |
This comment has been minimized.
This comment has been minimized.
|
This PR is super out of date, so I'm just going to close it. |
steveklabnik commentedJul 29, 2014
I busted out some
git grep | xargs sedand fixed this. I've reviewed the diff, and it should be good. Please double check me, though!Fixes #15499