Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Feature request]: <details> support #164

Open
nenadalm opened this issue Nov 14, 2019 · 0 comments
Open

[Feature request]: <details> support #164

nenadalm opened this issue Nov 14, 2019 · 0 comments

Comments

@nenadalm
Copy link

Hi. I was thinking about showing some collapsible source code and found that it can be done using markdown: https://gist.github.com/pierrejoubert73/902cc94d79424356a8d20be2b382e1ab#gistcomment-2705100

In devcards, it doesn't work with code blocks though.

This works (hidden text is visible only after clicking the arrow):

<details>
<summary>Source</summary>
hidden text
</details>

This doesn't work (code block is not inside details element anymore in DOM):

<details>
<summary>Source</summary>
```clojure
(prn \"hello\")
```
</details>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant