-
Notifications
You must be signed in to change notification settings - Fork 22.5k
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
[Markdown] [ Web/API] Fix usages of <div class="hidden"> containing code blocks #7901
Labels
needs triage
Triage needed by staff and/or partners. Automatically applied when an issue is opened.
Comments
wbamberg
added
the
needs triage
Triage needed by staff and/or partners. Automatically applied when an issue is opened.
label
Aug 14, 2021
13 tasks
I'll work on this issue. |
I've opened #7922 with a fix. |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Labels
needs triage
Triage needed by staff and/or partners. Automatically applied when an issue is opened.
Part of #7898.
In preparing Web/API docs for Markdown conversion we'd like to remove occurrences of
<div class="hidden">
. There are two main usages of this pattern:This issue to about removing instances of the second category. The fix in this case is to:
hidden
class from the<div>
and attach it directly to the<pre>
blocks that the<div>
contains<div>
, having checked that it's not important*<div>
tagsThis will work in Markdown because we support info strings on code blocks, and we will support
hidden
as a value in there: https://developer.mozilla.org/en-US/docs/MDN/Contribute/Markdown_in_MDN#example_code_blocks.For example, given this (from https://developer.mozilla.org/en-US/docs/Web/CSS/align-content#examples):
...we would instead do:
<div>
, having checked that it's not important". The only case I can think of here is where the other stuff, such as headings, is providing an ID that the live sample can reference. Then deleting the heading will break the live sample.The text was updated successfully, but these errors were encountered: