Collapsible Code Sections in Joplin Notes

The following markdown will give you a collapsible code section within a summary.

<details>
  <summary>Click to see code. </summary>
  
```
from pwn import *
r = remote("10.10.10.1", 80)
cyc = cyclic(3000)
buffer = "A" * 200
payload = buffer + cyc
r.send(payload)
......
```
</details>

This gives you the following

Click to see code.

from pwn import *
r = remote("10.10.10.1", 80)
cyc = cyclic(3000)
buffer = "A" * 200
payload = buffer + cyc
r.send(payload)
......

This embeds snippets of code for quick viewing, along with attached scripts .. or if I want, the entire script in an collapsible code block. When exported to PDF – the block is not expanded, so that sucks. but viewing from Joplin App this does work.