These are tricks specific to my setup using github pages and kramdown.


Putting markdown in HTML

If you want markdown to be processed inside HTML tags, use the attribute markdown="1".

<div>
**I should be bold but am not**
</div>

<div markdown="1">
**I am bold**
</div>
**I should be bold but am not**

I am bold

Source here


Accordion

<details markdown="1">
<summary>Click to expand!</summary>

1. A list item
2. Another list item

</details>
Click to expand!
  1. A list item
  2. Another list item

Footnotes

This is a text with a
footnote[^1].

Here's some more text.

[^1]: And here is the definition.

This is a text with a footnote1.

Here’s some more text.


Lots of fun stuff: https://kramdown.gettalong.org/syntax.html#links-and-images


Code syntax highlighting

```python
def foo():
   print(0)
```
def foo():
   print(0)
  1. And here is the definition.