Style specification for BaldarSilveraxe's (AKA Stephen S.) Roll20 markdown scripts and Slugnet's excellent example for Alien RPG.
You will need to either have an existing game on Roll20, or create a new game.
Install the three API scripts to the game you wish to use them with:
- markdown.js https://gist.github.com/Villain1nGlasses/cc5ed309d95d1230d786aeb3ca35f476 (Please use my version, which has fixes for tables.)
- markdownNotesBio.js https://gist.github.com/BaldarSilveraxe/1002a65dd6e2613c8d38edc1f6005990
- markdownDocumentation.js https://gist.github.com/BaldarSilveraxe/5a1db1db88890ff2de0b94b57557f8c3
Installing API scripts on Roll20 is beyond the scope of this documentation, please visit https://help.roll20.net/hc/en-us/articles/360037256714-API#API-HowdoIinstallanAPIscriptifIwanttowritemyowncodeorIwanttousecodefromanexternalsource?.
The original thread by Stephen S. concerning the Markdown mod can be found here: https://app.roll20.net/forum/post/8028597/script-markdown-handouts-and-bios/?pagenum=1.
Once you have installed the API scripts, launch the game on Roll20. Follow the steps below to start using the markdown styling in-game.
Create a new "Handout" named "Style Sheet" and in the "GM Notes" place:
[css]
h1 {color: red;}
Save changes. In the "Description & Notes" section you should see the processed CSS
[css](-LxpMeYSNUYwZIVXxguT)
h1 {color: red;}
NOTE: The "-LxpMeYSNUYwZIVXxguT"` part is the object id for your handout. It will not be the same as you see in this example. That is the "link" for this style sheet. Copy it to the clipboard.
Create a new "Handout" named "Markdown Handout" and in the "GM Notes" place:
[md]
[css](-LxpMeYSNUYwZIVXxguT)
# This Heading should be red.
(You should paste in what you copied to the clipboard to the second line.)
NOTE: The "-LxpMeYSNUYwZIVXxguT"` part is the object id for your handout. It will not be the same as you see in this example.
Save changes.
In the "Description & Notes" section you should see the processed Markdown. It should be large red text reading:
This Heading should be red.
If all has worked correctly in the previous steps, do the following.
Open the HERO-CSS-Markdown file (https://github.com/Villain1nGlasses/HeroMarkdown/blob/main/HERO-CSS-Markdown.css) and copy/paste everything to the "GM Notes" section of the "Style Sheet" "Handout". Delete or overwrite the text that reads:
[css]
h1 {color: red;}
Save changes. In the "Description & Notes" section you should see the processed CSS
[css](-LxpMeYSNUYwZIVXxguT) <-- will not be this code, was replaced earlier.
bg {
padding: 30px;
padding-top: 1px;
margin: -30px;
max-width: 800px;
}
etc.
Now, open the HERO Example Markdown file (https://github.com/Villain1nGlasses/HeroMarkdown/blob/main/HERO-Example.md) and copy/paste everything to the "GM Notes" section of the "Markdown Handout" "Handout" below the two lines that read:
[md]
[css](-LxpMeYSNUYwZIVXxguT) <-- will not be this code, was replaced earlier
Delete or overwrite the line that reads:
# This Heading should be red.
Save changes.