Formatting help

  • Created 23 Jan 2021
  • Updated 22 Jun 2024

On a number of places in this website, you can use CommonMark to control how your text is displayed. CommonMark, also known as Markdown, is a simple and intuitive way to apply styling. The following features are available:

Standard markup features

All features described in the CommonMark Reference are available for use on the Train Sim Community mods website.

Embedding YouTube videos

You can embed a video hosted on YouTube by writing this:

![youtube](https://www.youtube.com/watch?v=aqz-KE-bpKQ)

Which will then appear like this:
youtube

Spoilers

You can hide text from display by using the spoiler tag. This will obscure text until the reader clicks on it.

Example:

||Hidden text||

Renders as:
Hidden text

Expandable sections

You can add an expandable section to your text as follows:

|||Title of section
### My section body
This is the body of the expandable section.
|||

Which renders as follows:

Title of section

My section body

This is the body of the expandable section.

  • To have the section opened on page load, place the word "{open}" after the title
  • To nest expandable sections, increase the number of pipe characters on the outer sections. This is due to a Markdig design choice.