Simplify markdown.html

In the case of html void elements (not having the trailing '/') I have
merged the 'no thank you' and 'instead use'. At the same time I fixed a
typo where one 'no thank you' referred to the wrong 'instead use' (in
particular it was '<hr/>' -> '<br>' rather than '<hr/>' -> '<hr>').
This commit is contained in:
Cody Boone Ferguson committed 2025-03-03 06:49:10 -08:00
1 parent 04fdea9a14
commit 355e2f7d87
2 files changed
+18 -45

No files matched your search

+12 -15
View File
@@ -658,25 +658,22 @@ elements</a>.</p>
tags</a>.</p>
<p>The trailing slash on void HTML elements has no effect and interacts badly with
unquoted attribute values.</p>
<p>For example, please do <strong>NOT</strong> use:</p>
<pre><code> &lt;br/&gt; &lt;=== no thank you</code></pre>
<p>Instead use just:</p>
<pre><code> &lt;br&gt;</code></pre>
<p>And for example, please do <strong>NOT</strong> use:</p>
<pre><code> &lt;hr/&gt; &lt;=== no thank you</code></pre>
<p>Instead use just:</p>
<pre><code> &lt;br&gt;</code></pre>
<p>and</p>
<pre><code> &lt;hr&gt;</code></pre>
<p>And for example, please do <strong>NOT</strong> use:</p>
<pre><code> &lt;img src=&quot;1984-anonymous-tattoo.jpg&quot;
<p>For example, please do <strong>NOT</strong> use markdown like these:</p>
<pre><code> &lt;br/&gt; &lt;=== no thank you
&lt;hr/&gt; &lt;=== no thank you
&lt;img src=&quot;1984-anonymous-tattoo.jpg&quot;
alt=&quot;image of a tattoo of the 1984 anonymous C code&quot;
width=600 height=401 /&gt; &lt;=== no thank you</code></pre>
<p>Instead use just:</p>
<pre><code> &lt;img src=&quot;1984-anonymous-tattoo.jpg&quot;
<p>Instead use, respectively:</p>
<pre><code> &lt;br&gt;
&lt;hr&gt;
&lt;img src=&quot;1984-anonymous-tattoo.jpg&quot;
alt=&quot;image of a tattoo of the 1984 anonymous C code&quot;
width=600 height=401&gt;</code></pre>
<p>etc.</p>
<p>Jump to: <a href="#">top</a></p>
<div id="backslash">
<div id="br">
+6 -30
View File
@@ -396,54 +396,30 @@ tags](https://github.com/validator/validator/wiki/Markup-»-Void-elements#traili
The trailing slash on void HTML elements has no effect and interacts badly with
unquoted attribute values.
For example, please do **NOT** use:
For example, please do **NOT** use markdown like these:
``` <!---html-->
<br/> <=== no thank you
```
Instead use just:
``` <!---html-->
<br>
```
And for example, please do **NOT** use:
``` <!---html-->
<hr/> <=== no thank you
```
Instead use just:
``` <!---html-->
<br>
```
and
``` <!---html-->
<hr>
```
And for example, please do **NOT** use:
``` <!---html-->
<img src="1984-anonymous-tattoo.jpg"
alt="image of a tattoo of the 1984 anonymous C code"
width=600 height=401 /> <=== no thank you
```
Instead use just:
Instead use, respectively:
``` <!---html-->
<br>
<hr>
<img src="1984-anonymous-tattoo.jpg"
alt="image of a tattoo of the 1984 anonymous C code"
width=600 height=401>
```
etc.
Jump to: [top](#)
<div id="backslash">