From 355e2f7d87f36cd8c51e4148cc9a0377bd8d2ff4 Mon Sep 17 00:00:00 2001 From: Cody Boone Ferguson <53008573+xexyl@users.noreply.github.com> Date: Mon, 3 Mar 2025 06:49:10 -0800 Subject: [PATCH] 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 '
The trailing slash on void HTML elements has no effect and interacts badly with unquoted attribute values.
-For example, please do NOT use:
- <br/> <=== no thank you
-Instead use just:
- <br>
-And for example, please do NOT use:
- <hr/> <=== no thank you
-Instead use just:
- <br>
-and
- <hr>
-And for example, please do NOT use:
- <img src="1984-anonymous-tattoo.jpg"
+For example, please do NOT use markdown like these:
+ <br/> <=== no thank you
+
+ <hr/> <=== no thank you
+
+ <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:
- <img src="1984-anonymous-tattoo.jpg"
+Instead use, respectively:
+ <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
diff --git a/markdown.md b/markdown.md
index b823d434e..ecb01aa67 100644
--- a/markdown.md
+++ b/markdown.md
@@ -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:
```
<=== no thank you
-```
-Instead use just:
-
-```
-
-```
-
-And for example, please do **NOT** use:
-
-```
<=== no thank you
-```
-Instead use just:
-
-```
-
-```
-
-and
-
-```
-
-```
-
-And for example, please do **NOT** use:
-
-```
<=== no thank you
```
-Instead use just:
+Instead use, respectively:
```
+
+
+
+
```
-etc.
-
Jump to: [top](#)