No CSS? No sweat! Let me know if there's something to improve.

comrak x gen.sh cheatsheet

Specifically, the parts I forget. May be incomplete…

table of contents

just a code block with toc as language:

frontmatter

ignored at beginning:

---
date: 2025-10-22
title: title
desc: Longer description.
tags: tag1 tag2 tag3
cats: gem draft sw hw rb misc
image: ./image.png
---

text and tables

| `markdown`  | result    |
|-------------|-----------|
| `**bold**`  | **bold**  |
| `_italic_`  | _italic_  |
| `__under__` | __under__ |
| `a^sup^`    | a^sup^    |
| `a~sub~`    | a~sub~    |
| `~~cut~~`   | ~~cut~~   |

becomes

markdown result
**bold** bold
_italic_ italic
__under__ under
a^sup^ asup
a~sub~ asub
~~cut~~ cut

image captions

to create a figure and figcaption setup, do ![alt described image](/assets/link/to/image "Caption and Title shows up with image")

![back of (new) robot](/assets/rfgy24/back.avif "Back of the new robot")
back of (new) robot
Back of the new robot

side by side images

images separated by only one newline or one whitespace show up side-by-side:

![front of (new) robot](/assets/rfgy24/front.avif "Front of the new robot")
![back of (new) robot](/assets/rfgy24/back.avif "Back of the new robot")
front of (new) robot
Front of the new robot
back of (new) robot
Back of the new robot

chat/speech bubbles for dialogue

Do <div dia> and <div dia me>:

<div dia me>2b</div>
<div dia>two what?</div>
<div dia me>two bees.</div>
<div dia me>there look</div>
<div dia>where</div>
<div dia>where!? i can't see them</div>
<div dia>r u messing with me</div>
<div dia me>:P</div>

Looks like:


Speech bubble me:
2b

Speech bubble:
two what?

Speech bubble me:
two bees.

Speech bubble me:
there look

Speech bubble:
where

Speech bubble:
where!? i can't see them

Speech bubble:
r u messing with me

Speech bubble me:
:P

spoilers and html

||spoiler||, so darth vader is (spoiler) luke’s daddy

expand (native html)
<details><summary>text</summary>show on reveal</details>

(spoiler) (here, <details open>)

and more spoilers:

darth vader is ||an alligator,  <!-- two spaces -->
20% of the time||

becomes darth vader is (spoiler) an alligator,
20% of the time

lists

* see this?
- this is it
- enjoyable
3. okay
4. okay again
* [ ] hi
* [x] checked
6. [x] yellow
7. [ ] pink

looks like

  1. okay
  2. okay again
  1. yellow
  2. pink

alerts

> [!note]
> take this info into account

> [!tip]
> get more success

> [!important]
> crucial to success

> [!warning]
> immediate attention required

> [!caution]
> tread carefully

> [!note] not a final solution
> later, the pretzel was eaten

makes

Alert: Note

take this info into account

Alert: Tip

get more success

Alert: Important

crucial to success

Alert: Warning

immediate attention required

Alert: Caution

tread carefully

Alert: not a final solution

later, the pretzel was eaten

description lists

term
:   definition

word
:   meaning

for

Definitions:

term1
definition1
word
meaning

quotes

> single line quote, and

>>>
multi-line
quote
>>>

footnotes

do [^fn1].1

and, if you want, again (1)

later, do:

[^fn1]: footnote content

wikilinks

[[text label|/posts/wikilink]]
like [[my iems|/posts/blon-bl03]]
shown my iems
and
use (^|[^!])\[[^\]]+\]\(\/[^)]*\) regex to find things you can ’ikilinkify.

math

for data-math-style=inline, $math$ like x^2 + y^2 = z^2

for data-math-style=display, $$math$$: \int_{0}^{1} x^2 , dx = \frac{1}{3}

and for math codeblock, ```math ...```

conclusion

Good for reference!

  1. footnote content 2

Comment on "commonmark+comrak gen.sh cheatsheet"