-
-
Notifications
You must be signed in to change notification settings - Fork 14.8k
Markdown fails to be interpreted after #[doc] attribute is used #42760
Copy link
Copy link
Closed
Labels
C-bugCategory: This is a bug.Category: This is a bug.T-dev-toolsRelevant to the dev-tools subteam, which will review and decide on the PR/issue.Relevant to the dev-tools subteam, which will review and decide on the PR/issue.T-rustdocRelevant to the rustdoc team, which will review and decide on the PR/issue.Relevant to the rustdoc team, which will review and decide on the PR/issue.
Metadata
Metadata
Assignees
Labels
C-bugCategory: This is a bug.Category: This is a bug.T-dev-toolsRelevant to the dev-tools subteam, which will review and decide on the PR/issue.Relevant to the dev-tools subteam, which will review and decide on the PR/issue.T-rustdocRelevant to the rustdoc team, which will review and decide on the PR/issue.Relevant to the rustdoc team, which will review and decide on the PR/issue.
Type
Fields
Give feedbackNo fields configured for issues without a type.
Consider the following structure with documentation:
At present,
rustdocwill render this as:When the following is expected:
In short, after a
#[doc]attribute, a markdown header is not interpreted as markdown.This also applies to headers declared using
===, whereis rendered by
rustdocas:as opposed to the expected:
I wouldn't be surprised if this is a more systemic issue and additional markdown syntax is interpreted literally as well.