-
Notifications
You must be signed in to change notification settings - Fork 517
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
Blank line in highlighted code #12364
Comments
the problem may be resolved simply by deleting the |
It may caused by the post processing of HTML in rari: https://github.com/mdn/rari/blob/df364f905549a025f7607fe5086a62a71d9697aa/crates/rari-doc/src/html/rewriter.rs#L119-L122 The adding of |
then we may just remove the blank line at the very begining of the code content to resolve it |
FYI: yari's handler for codeblocks: Line 41 in 1ebac4b
|
Summary
formatted code with many lines defined with raw
<pre class="brush: json">
and a blank line following it will have a blank line at the very beginningNote
Just a glance, there are 133 occurences that are alike and have problems (blank line at the beginning of the code)
Note
i'm not sure if this is caused by the format of the document'sThis is caused by yari and rari's addition of<pre>
code, or is caused by yari?<code>
(see discussion below)https://developer.mozilla.org/en-US/docs/Mozilla/Add-ons/WebExtensions/manifest.json/browser_action#choosing_icon_sizes
Reproduction steps
Expected behavior
Without line-breaking
Actual behavior
Device
Desktop
Browser
Chrome
Browser version
Stable
Operating system
Windows
Screenshot
No response
Anything else?
No response
Validations
The text was updated successfully, but these errors were encountered: