docsonnet
docsonnet copied to clipboard
feat: support collapsible `example` blocks
Similar to this: https://golang.org/pkg/encoding/json/#HTMLEscape
Example
Example
<details>
<summary>Example</summary>
```jsonnet
this is an example
```
</details>
Because docsonnet output is usually processed my a Markdown parser, above HTML snippet would work.
Agreed, there is probably a better syntax. Suggestions?
I don't think there's better markdown compatible syntax