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 `)
 
(4 intermediate revisions by 2 users not shown)
Line 1: Line 1:
 
{{revdate}}{{stub}}
 
{{revdate}}{{stub}}
 +
{{main|Complete Guide to Macros & Rolls#Markdown}}
  
Some Markdown can be used in Roll20's {{Text Chat}} to style text & roll output.
+
Some {{wiki|Markdown|Markdown}} can be used to style text & roll output seen in Roll20's {{Text Chat}}.
 +
<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}}.  
 +
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:
  
More details: '''[[Complete_Guide_to_Macros_%26_Rolls#Markdown|Complete Guide to Macros & Rolls - Markdown]]'''
+
{| class="wikitable"
 +
|-
 +
! Format !! Syntax
 +
|-
 +
| ''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.
 +
 
 +
{{ex}}
 +
<pre style="overflow:auto;white-space:pre-wrap;">/em his **@{bob|height}** tall, and can be described as: @{bob|description}.
 +
</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>
 +
 
 +
[[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**}}