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

New nbDetails block? #205

Open
neroist opened this issue May 9, 2023 · 2 comments
Open

New nbDetails block? #205

neroist opened this issue May 9, 2023 · 2 comments

Comments

@neroist
Copy link
Contributor

neroist commented May 9, 2023

It would be cool to have a block using the <summary> and <details> html tags like this:

<details>
  <summary>
    
      summary

   </summary>

  details
</details>

This could be used in a Q&A section, long blobs of text, etc...

@pietroppeter
Copy link
Owner

indeed we showed how to produce a simple implementation of that in our latest nimib presentation: https://github.com/pietroppeter/nimconf22-nimib/blob/bb874c6f2d2fcb77c7bd4fbffbe906a8df95ebdc/pietros_slides.nim#L343
(in principle you could see the slides here but I do not know how to link to a specific slides in nimislides).

ideally an improved version would make use of the container block concept (still not available) to support multiple mixed blocks (code + text + images + ...) inside the details.

Not sure if we want already to put the simple implementation inside nimib or not...

@neroist
Copy link
Contributor Author

neroist commented May 17, 2023

The simple implementation looks fine to me!

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

2 participants