This is an example story demonstrating Markdown as story content. Below is a list of features (and examples of them) that work:
- Heading
- Text
- Tables
- Image
- Math and LaTeX
- Embeddings - Requires shortcode
- HTML Formatting - Requires shortcode, markdown within HTML not supported
Heading
H1
H2
H3
H4
Text
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Quisque sagittis tortor in nunc varius, at rutrum leo faucibus. Aliquam est sem, accumsan vitae magna vitae, vehicula scelerisque arcu. Donec a mi molestie, posuere metus id, pellentesque est. Fusce leo orci, porta eget urna a, congue ornare ipsum. Cras gravida eleifend metus sed dapibus. Maecenas laoreet mattis ultricies. Aenean eget mollis lectus, eget rhoncus velit. Donec nec purus ut lorem pharetra sodales. Cras sodales magna eu ex commodo, a interdum sem tincidunt. Nulla velit urna, tempus eu nunc auctor, egestas pharetra lectus. Nam maximus dolor sed elit imperdiet aliquam. Cras egestas, turpis ultrices sagittis dignissim, risus turpis fermentum velit, eu feugiat mi orci quis tellus. Suspendisse potenti. Nullam porttitor risus in posuere vestibulum.
Proin ornare ultrices tellus. Cras vitae nulla et ipsum dictum tristique a vitae sapien. Nam maximus tristique arcu, vitae feugiat turpis. Integer elementum eu turpis ac feugiat. Maecenas nisi turpis, placerat quis fringilla eget, fermentum sit amet enim. Aliquam hendrerit odio pulvinar, tristique eros eget, tristique augue. Vivamus quis rutrum ante.
Markdown table
Works out of the box.
1 | 2 | 3 | 4 | 5 |
---|---|---|---|---|
a | b | c | d | e |
f | g | h | i | j |
l | m | n | o | p |
q | r | s | t | u |
Image
Images can be uploaded to the same folder as the story, and referenced from one folder before the story.
|
|
Math and LaTeX
LaTeX is supported via KaTeX. $$ \sum_{k=0}^n (k^2 + 1) $$
This is an $i = n * l + i / n - e$ equation.
Embedding
HTML is considered unsafe when rendering the Markdown, so embeds don’t work out of the box.
|
|
You can get around this by adding an html shortcode to your code.
Note: You must end your embed with a matching closing tag for it to render correctly.
|
|
HTML Formatting
Similar to embeds, any HTML needs the html wrapper. Note that mixing Markdown with HTML is not supported currently, so we would not recommend using a mix of HTML and Markdown.
If you would like to style your content, tailwind is supported for formatting. Feel free to use tailwind to customize your story!
|
|