-
Notifications
You must be signed in to change notification settings - Fork 10.9k
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
Extra new line inserted in markdown code block #7707
Comments
CommonMark also say's it should be rendered like
|
I think this should be re-categorized as a proper bug, and re-titled "Markdown code fencing produces extra newline" |
Inner HTML for the pre's:
<code class="code-colors hljs subunit"><span class="copyonly">```<br></span><span class="hljs-keyword">test
</span><span class="copyonly"><br>```</span></code> With extra space: <code class="code-colors hljs subunit"><span class="copyonly">```<br></span>
<span class="hljs-keyword">test
</span><span class="copyonly"><br>```</span></code> So I'm guessing we either need to stop sending extra |
@xenithorb I fully agree with that. I prefer the "stop sending extra |
|
There was a pull request to fix this, but I can't find it now for some reason... |
@graywolf336 #8510 Found it Perhaps triage #9754 to go along with this fix too? |
Description:
Until recent versions (I don't remember which one, sorry), code markup could be done as follows:
```
Text
```
which displayed as
This behviour changed, as
```
Text
```
now displays as
and you need
```Text
```
for
This is really annoying as all other markdown implementations (at least known to me), e.g. GitHubs own ignore that newline after the ```.
Maybe this need discussion, I'm not sure of that.
Server Setup Information:
0.57.2
2.8.0
Steps to Reproduce:
Expected behavior:
No change in behaviour the following should work as it did earlier:
```
Text
```
which displayed as
Actual behavior:
It works as follows:
```Text
```
for
The text was updated successfully, but these errors were encountered: