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/05 15:46] – [Quoting] asimongwiki:syntax [2026/01/02 19:39] (current) – [Code Blocks] asimong
Line 62: Line 62:
 You put a double backslash at the end of a line\\ You put a double backslash at the end of a line\\
 or even in the middle\\ followed by a space\\ as in native\\ DokuWiki. or even in the middle\\ followed by a space\\ as in native\\ DokuWiki.
 +```
 +
 +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   
 +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.
 ``` ```
  
 You should use forced newlines only if really needed. You should use forced newlines only if really needed.
 +
  
 ### Indentation ### Indentation
Line 190: 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 231: 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 239: 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 248: 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 268: 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 423: Line 439:
 I think we should do it I think we should do it
  
-  > No we shouldn't+> No we shouldn't
  
-  >   > Well, I say we should+>   > Well, I say we should
  
 > Really? > Really?
Line 434: Line 450:
 I think we should do it I think we should do it
  
-  > No we shouldn't+> No we shouldn't
  
-  >   > Well, I say we should+>   > Well, I say we should
  
 > Really? > Really?
Line 531: 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 544: 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.1764949562.txt.gz
  • Last modified: 2025/12/05 15:46
  • by asimong