-
Notifications
You must be signed in to change notification settings - Fork 30
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
collapse buttons not working #45
Comments
@dirkschumacher this may be relevant to you too for the MSF work if case studies are to end up on reconlearn.org |
Dumb Q but if you don't do any indenting of the lorem ipsum code does it work? I'm thinking about 4 space code indenting |
I'll check it out! |
@stephlocke, it did not do anything different: |
The problem was that pandoc had deprecated https://deploy-preview-44--reconlearn-test.netlify.com/post/button-test.html |
The collapsing works, but at the cost of the inability to render markdown inside it... which is a non-starter. |
It'll be better to make a hugo shortcode for this capability than write your html each time so that you can get markdown content etc |
I hadn't thought of that! |
@zkamvar @maelle @stephlocke
Right, so I start to have a better idea of what is happening on this.
Context
I am using this kind of buttons in a new case study:
https://www.w3schools.com/bootstrap/tryit.asp?filename=trybs_collapsible&stacked=h
The issue
They work well when using
rmarkdown::render("foo_Rmd")
, but not when rendered on the website; I have added the headers of the example above tolayout/partials/head.html
, so the issue doesn't seem to come from there. If we look at the source filecontent/post/test-buttons.Rmd
:After using
learn::render_new_rmds_to_md()
, the filecontent/post/test-buttons.md
looks like:The
I can foresee more problems ahead if
<div>
tags are removed from ourRmd
. Any thoughts / idea welcome.Resources
Files are here:
5f05b32
The text was updated successfully, but these errors were encountered: