-
-
Notifications
You must be signed in to change notification settings - Fork 27
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
Add spoiler class of fenced div #502
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is a good start and I really appreciate your digging into lua to get this working!
I've left a couple of comments that will clean up the code a bit.
It would be good to add an example in the tests/testthat/examples/ex.md, which is tested in tests/testthat/test-render_html.R using snapshot testing.
The tests will fail when you add it, but I will fenagle the tests to be better at filtering (there is a weird thing with pandoc where the attributes are added in a random order, which messes up the tests, so I have to manually clean them up in the test).
Co-authored-by: Zhian N. Kamvar <[email protected]>
Excellent, thanks @zkamvar 🙌 |
Thank you Toby! |
Adds a
spoiler
class of accordion fenced div, which could be used instead of "floating"solution
blocks where the user wants to give the option to view/hide additional detail.Styling for this class would be added by carpentries/varnish#92