wiki:syntax

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
wiki:syntax [2025/12/17 20:30] – [Basic Text Formatting] asimongwiki:syntax [2026/01/02 19:39] (current) – [Code Blocks] asimong
Line 64: Line 64:
 ``` ```
  
-You should use forced newlines only if really needed.+The normal Markdown syntax allows for two spaces at the end of a line    
 +producing a linebreak. But if there's only one space  
 +or no spaces at all 
 +then those don't produce linebreaks.   
 +The only thing is, those two spaces are hard to see.
  
 +```
 The normal Markdown syntax allows for two spaces at the end of a line    The normal Markdown syntax allows for two spaces at the end of a line   
 producing a linebreak. But if there's only one space  producing a linebreak. But if there's only one space 
 or no spaces at all or no spaces at all
-then those don't produce a linebreak.+then those don't produce linebreaks  
 +The only thing is, those two spaces are hard to see. 
 +``` 
 + 
 +You should use forced newlines only if really needed. 
  
 ### Indentation ### Indentation
Line 195: Line 205:
 ### Level 3 headings ### Level 3 headings
 For headings that result in an html h3 tag, you have the choice of normal Dokuwiki (but remember to put a blank line after it): For headings that result in an html h3 tag, you have the choice of normal Dokuwiki (but remember to put a blank line after it):
- 
-`==== Level 3 headings ====` 
  
 ==== Level 3 headings ==== ==== Level 3 headings ====
 +
 +`==== Level 3 headings ====`
  
 or to use Markdown syntax it's or to use Markdown syntax it's
Line 236: Line 246:
 You can include external and internal [[doku>images|images, videos and audio files]] with curly brackets. Optionally you can specify the size of them. You can include external and internal [[doku>images|images, videos and audio files]] with curly brackets. Optionally you can specify the size of them.
  
-Full original size:     {{wiki:dokuwiki-128.png}}+Full original size:   {{wiki:dokuwiki-128.png}}
  
 `Full original size:   {{wiki:dokuwiki-128.png}}` `Full original size:   {{wiki:dokuwiki-128.png}}`
Line 244: Line 254:
 `Resize to given width:            {{wiki:dokuwiki-128.png?200}}` `Resize to given width:            {{wiki:dokuwiki-128.png?200}}`
  
-Resize to given width and height((when the aspect ratio of the given width and height doesn't match that of the image, it will be cropped to the new ratio before resizing)): {{wiki:dokuwiki-128.png?200x50}}+Resize to given width and height((when the aspect ratio of the given width and height doesn't match that of the image, it will be cropped to the new ratio before resizing)): {{wiki:dokuwiki-128.png?180x50}}
  
-`Resize to given width and height: {{wiki:dokuwiki-128.png?200x50}}`+`Resize to given width and height: {{wiki:dokuwiki-128.png?180x50}}`
  
 Resized external image:           {{https://www.php.net/images/php.gif?200x50}} Resized external image:           {{https://www.php.net/images/php.gif?200x50}}
Line 253: Line 263:
  
 By using left or right whitespaces you can choose the alignment. By using left or right whitespaces you can choose the alignment.
 +Leave a space only after `{{` will right align; only before `}}` will left align, and after `{{` and before `}}` will centre.
  
 ----  ---- 
Line 273: Line 284:
 Of course, you can add a title (displayed as a tooltip by most browsers), too. Of course, you can add a title (displayed as a tooltip by most browsers), too.
  
-{{ wiki:dokuwiki-128.png?300 |This is the caption}}+{{ wiki:dokuwiki-128.png?300 |This is a tooltip rather than a caption}}
  
-`{{ wiki:dokuwiki-128.png?300 |This is the caption}}`+`{{ wiki:dokuwiki-128.png?300 |This is a tooltip rather than a caption}}`
  
 For linking an image to another page see [[#Image Links]] above. For linking an image to another page see [[#Image Links]] above.
Line 536: Line 547:
  
 <file> <file>
-This is pretty much the same, but you could use it to show that you quoted a file.+This is pretty much the same,    but you could use it to show that you quoted a file.
 </file> </file>
  
Line 549: Line 560:
  
 <file> <file>
-This is pretty much the same, but you could use it to show that you quoted a file.+This is pretty much the same,    but you could use it to show that you quoted a file.
 </file> </file>
 ``` ```
  • wiki/syntax.1766003405.txt.gz
  • Last modified: 2025/12/17 20:30
  • by asimong