docsonnet icon indicating copy to clipboard operation
docsonnet copied to clipboard

feat: support collapsible `example` blocks

Open ghostsquad opened this issue 5 years ago • 2 comments

Similar to this: https://golang.org/pkg/encoding/json/#HTMLEscape

Example

Example
<details>
<summary>Example</summary>

```jsonnet
this is an example
```
</details>

ghostsquad avatar Jul 15 '20 06:07 ghostsquad

Because docsonnet output is usually processed my a Markdown parser, above HTML snippet would work.

Agreed, there is probably a better syntax. Suggestions?

tombrk avatar Aug 17 '20 07:08 tombrk

I don't think there's better markdown compatible syntax

ghostsquad avatar Aug 17 '20 16:08 ghostsquad