Character Vault
Any Concept / Any System
Compendium
Your System Come To Life
Roll20 for Android
Streamlined for your Tablet
Roll20 for iPad
Streamlined for your Tablet

Personal tools

Difference between revisions of "Markdown"

From Roll20 Wiki

Jump to: navigation, search
m
m (code markdown had an extra `)
 
(3 intermediate revisions by 2 users not shown)
Line 5: Line 5:
 
<onlyinclude>
 
<onlyinclude>
 
Markdown is available to let you bold, italic, bold-italic, create a hyperlinks, or include even an image in your macros and text as they appear in the {{Text Chat}}.  
 
Markdown is available to let you bold, italic, bold-italic, create a hyperlinks, or include even an image in your macros and text as they appear in the {{Text Chat}}.  
<pre style="overflow:auto;white-space:pre-wrap;">
+
You can use basic Markdown syntax in your text chat messages. We don't support the entire breadth of everything Markdown can do (like headers), but rather just basic formatting. Here's a quick rundown:
* italics *
+
 
** bold **
+
{| class="wikitable"
*** bold italics ***
+
|-
[Dodge](https://roll20.net/compendium/dnd5e/Rules:Actions%20in%20Combat#h-Dodge)
+
! Format !! Syntax
</pre>
+
|-
 +
| ''Italicize Text'' || *text to italicize*
 +
|-
 +
| '''Bold Text''' || **text to bold**
 +
|-
 +
| '''''Bold & Italicize Text''''' || ***text to bold & italicize***
 +
|-
 +
| <code style="padding: 3px 4px; color: #d14; background-color: #f7f7f9; border: 1px solid #e1e1e8; font-family: Menlo,Monaco,Courier New,monospace; border-radius: 3px">Code</code> || ``Code``
 +
|-
 +
| Link to URL || <nowiki>[Google](https://www.google.com), [Dodge](https://roll20.net/compendium/dnd5e/Rules:Actions%20in%20Combat#h-Dodge)</nowiki>
 +
|-
 +
| Image || <nowiki>[Roll20 Logo](https://app.roll20.net/v2/images/roll20-logo.png)</nowiki>
 +
|}
 +
 
 
Alternative to adding the markdown into the macros, you can sometimes add the markdown to your [[Complete_Guide_to_Macros_%26_Rolls#Character_Attributes|Character Attributes]], so you can have a universal macro, and make individual adjustment to to how you want each output to look like.
 
Alternative to adding the markdown into the macros, you can sometimes add the markdown to your [[Complete_Guide_to_Macros_%26_Rolls#Character_Attributes|Character Attributes]], so you can have a universal macro, and make individual adjustment to to how you want each output to look like.
  
Line 16: Line 29:
 
<pre style="overflow:auto;white-space:pre-wrap;">/em his **@{bob|height}** tall, and can be described as: @{bob|description}.
 
<pre style="overflow:auto;white-space:pre-wrap;">/em his **@{bob|height}** tall, and can be described as: @{bob|description}.
 
</pre>
 
</pre>
 +
 +
''Note on Code: The extra backtick at the start of the code snippet is required due to the backtick character also being the character used to [[Text_Chat#Escape_Text_.28.60.29|escape commands]].''
 +
 +
''Note on Images: Including an image is just putting in a link to an image. If the link ends in <code>.png</code>, <code>.jpg</code>, <code>.jpeg</code>, or <code>.gif</code>, we will automatically insert an image tag in addition to linking to the source image.''
 +
 +
You can use the Markdown formatting in general messages, whispers (<code>/w</code>), descriptions (<code>/desc</code>), and emotes (<code>/em</code>). You can also include Markdown formatting in the values you pass to [[Roll Templates]] and it should work fine. For example:<pre> {{attack= [[1d20]] vs **AC**}}</pre>
 
</onlyinclude>
 
</onlyinclude>
  
 
[[Category:Macros]]
 
[[Category:Macros]]

Latest revision as of 23:01, 1 September 2022


Main Page: Complete Guide to Macros & Rolls#Markdown

Some Markdown Wikipedia-Black-W.png can be used to style text & roll output seen in Roll20's q Text Chat.

Markdown is available to let you bold, italic, bold-italic, create a hyperlinks, or include even an image in your macros and text as they appear in the q Text Chat. You can use basic Markdown syntax in your text chat messages. We don't support the entire breadth of everything Markdown can do (like headers), but rather just basic formatting. Here's a quick rundown:

Format Syntax
Italicize Text *text to italicize*
Bold Text **text to bold**
Bold & Italicize Text ***text to bold & italicize***
Code ``Code``
Link to URL [Google](https://www.google.com), [Dodge](https://roll20.net/compendium/dnd5e/Rules:Actions%20in%20Combat#h-Dodge)
Image [Roll20 Logo](https://app.roll20.net/v2/images/roll20-logo.png)

Alternative to adding the markdown into the macros, you can sometimes add the markdown to your Character Attributes, so you can have a universal macro, and make individual adjustment to to how you want each output to look like.


Example:

/em his **@{bob|height}** tall, and can be described as: @{bob|description}.

Note on Code: The extra backtick at the start of the code snippet is required due to the backtick character also being the character used to escape commands.

Note on Images: Including an image is just putting in a link to an image. If the link ends in .png, .jpg, .jpeg, or .gif, we will automatically insert an image tag in addition to linking to the source image.

You can use the Markdown formatting in general messages, whispers (/w), descriptions (/desc), and emotes (/em). You can also include Markdown formatting in the values you pass to Roll Templates and it should work fine. For example:
 {{attack= [[1d20]] vs **AC**}}