doc:basic_text_formatting

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
doc:basic_text_formatting [2026/07/27 06:57] – [DokuWiki syntax] Simon Grantdoc:basic_text_formatting [2026/07/27 09:19] (current) Simon Grant
Line 12: Line 12:
   * B gives **Bold Text**   * B gives **Bold Text**
   * I gives //Italic Text//   * I gives //Italic Text//
-  * don't use U, __as it gives this as in Markdown__+  * don't use U, __as double underscore gives bold in Markdown__ 
 +    * with Markdown enabled, there is no way to get underlined text 
 +    * some sources say try <ins>"ins"</ins> or <u>"u"</u> but as you see they don't work
   * T gives ''Monospaced Text''   * T gives ''Monospaced Text''
   * <del>T</del> gives <del>Strike-through Text</del>   * <del>T</del> gives <del>Strike-through Text</del>
Line 32: Line 34:
   * `text with<sub>subscript</sub>` gives text with<sub>subscript</sub>   * `text with<sub>subscript</sub>` gives text with<sub>subscript</sub>
   * `----` creates a "horizontal rule": remember the need for a blank line before it.   * `----` creates a "horizontal rule": remember the need for a blank line before it.
-  * what about <u>this underline attempt</u>? 
  
 ===== Markdown syntax ===== ===== Markdown syntax =====
Line 40: Line 41:
   * `**Bold Text**` is the same as DokuWiki   * `**Bold Text**` is the same as DokuWiki
   * `''Monospaced Text''` is the same as DokuWiki   * `''Monospaced Text''` is the same as DokuWiki
-  * `----` for a horizontal rule is the same as DokuWiki, but 3 hyphens are enough+  * `---` for a horizontal rule is like DokuWiki, but 3 hyphens are enough
   * `__also Bold, not Underlined__` is bold, __not__ as DokuWiki   * `__also Bold, not Underlined__` is bold, __not__ as DokuWiki
   * `***Bold-Italic Text***` gives ***Bold-Italic Text***.   * `***Bold-Italic Text***` gives ***Bold-Italic Text***.
   * `~~strikethrough~~` gives ~~strikethrough~~   * `~~strikethrough~~` gives ~~strikethrough~~
-  * `H~2~O` and `x^2^` do **not** work – H~2~O and x^2^ – use `<sub>` and `<sup>` as above+  * `H~2~O` and `x^2^` do **not** work– see H~2~O and x^2^ – use `<sub>` and `<sup>` as above
  
 Because Markdown uses as string of  `------` underneath text to indicate a level-2 heading, you **must** leave a blank line before a horizontal rule. Because Markdown uses as string of  `------` underneath text to indicate a level-2 heading, you **must** leave a blank line before a horizontal rule.
Line 53: Line 54:
 The easiest way to be sure is to contain things you want unchanged inside `<nowiki>` `</nowiki>`tags. The easiest way to be sure is to contain things you want unchanged inside `<nowiki>` `</nowiki>`tags.
  
-`<nowiki>''**__I want to see all the formatting characters__**''</nowiki>`\\ +    <nowiki>''**__I want to see all the formatting characters__**''</nowiki>   
-comes out as\\+comes out as  
 <nowiki>''**__I want to see all the formatting characters__**''</nowiki> <nowiki>''**__I want to see all the formatting characters__**''</nowiki>
  
-On this page, the 'backtick' character ''\`'' is used in all the examples above, to allow showing the markup. But as you see, it does more than simply disable the special characters, as <nowiki><nowiki></nowiki> does: it also makes them monospaced and red text on pink background.+while using the 'backtick' character ''\`'' at the start and finish of the line of text… 
 + 
 +    `''**__I want to see all the formatting characters__**''
 +comes out as   
 +`''**__I want to see all the formatting characters__**''
 + 
 +The 'backtick' character ''\`'' is used in some examples above, to allow showing the markup. But as you see, it does more than simply disable the special characters, as <nowiki><nowiki></nowiki> does: it also makes them monospaced and red text on pink background.
  
 If you use the backtick, be very careful to have them balanced. Otherwise you might get a surprise when you look at the result! If you use the backtick, be very careful to have them balanced. Otherwise you might get a surprise when you look at the result!
  • doc/basic_text_formatting.1785135463.txt.gz
  • Last modified: 2026/08/18 23:39
  • (external edit)