Fossil SCM
Cut a verbose addition from the /wiki_rules doc
Commit
877e70c7b409814f6d8a117891dbcfd15c06c206c9d7d2c5aeb6ef9f932fea4c
Parent
f40b9c10335d4ab…
1 file changed
-9
-9
| --- src/wiki.wiki | ||
| +++ src/wiki.wiki | ||
| @@ -74,19 +74,10 @@ | ||
| 74 | 74 | There are two non-standard elements available: <verbatim> and |
| 75 | 75 | <nowiki>. No other elements are allowed. |
| 76 | 76 | All attributes are checked and only a few benign attributes are |
| 77 | 77 | allowed on each element. In particular, any attributes that specify |
| 78 | 78 | javascript or CSS are elided. |
| 79 | - Use <picture> and <source> with <tt>type=</tt> and | |
| 80 | - <tt>srcset=</tt> to offer WebP or AVIF images with a JPEG or PNG | |
| 81 | - fallback, for example: | |
| 82 | - <pre><picture> | |
| 83 | - <source type="image/webp" srcset="/raw/doc/trunk/www/hero.webp"> | |
| 84 | - <img src="/raw/doc/trunk/www/hero.jpg" alt="Diagram"> | |
| 85 | -</picture></pre> | |
| 86 | - A single-format image such as WebP may also be referenced directly | |
| 87 | - with <img src="...">. | |
| 88 | 79 | |
| 89 | 80 | 7. <b>Special Markup.</b> |
| 90 | 81 | The <nowiki> tag disables all wiki formatting rules through |
| 91 | 82 | the matching </nowiki> element. The <verbatim> tag works |
| 92 | 83 | like <pre> with the addition that it also disables all wiki |
| 93 | 84 |
| --- src/wiki.wiki | |
| +++ src/wiki.wiki | |
| @@ -74,19 +74,10 @@ | |
| 74 | There are two non-standard elements available: <verbatim> and |
| 75 | <nowiki>. No other elements are allowed. |
| 76 | All attributes are checked and only a few benign attributes are |
| 77 | allowed on each element. In particular, any attributes that specify |
| 78 | javascript or CSS are elided. |
| 79 | Use <picture> and <source> with <tt>type=</tt> and |
| 80 | <tt>srcset=</tt> to offer WebP or AVIF images with a JPEG or PNG |
| 81 | fallback, for example: |
| 82 | <pre><picture> |
| 83 | <source type="image/webp" srcset="/raw/doc/trunk/www/hero.webp"> |
| 84 | <img src="/raw/doc/trunk/www/hero.jpg" alt="Diagram"> |
| 85 | </picture></pre> |
| 86 | A single-format image such as WebP may also be referenced directly |
| 87 | with <img src="...">. |
| 88 | |
| 89 | 7. <b>Special Markup.</b> |
| 90 | The <nowiki> tag disables all wiki formatting rules through |
| 91 | the matching </nowiki> element. The <verbatim> tag works |
| 92 | like <pre> with the addition that it also disables all wiki |
| 93 |
| --- src/wiki.wiki | |
| +++ src/wiki.wiki | |
| @@ -74,19 +74,10 @@ | |
| 74 | There are two non-standard elements available: <verbatim> and |
| 75 | <nowiki>. No other elements are allowed. |
| 76 | All attributes are checked and only a few benign attributes are |
| 77 | allowed on each element. In particular, any attributes that specify |
| 78 | javascript or CSS are elided. |
| 79 | |
| 80 | 7. <b>Special Markup.</b> |
| 81 | The <nowiki> tag disables all wiki formatting rules through |
| 82 | the matching </nowiki> element. The <verbatim> tag works |
| 83 | like <pre> with the addition that it also disables all wiki |
| 84 |