SBOHVM / RPiR

The Reproducible Programming in R course, developed by the School of Biodiversity, One Health and Veterinary Medicine at the University of Glasgow.
https://sbohvm.github.io/RPiR/
GNU General Public License v3.0
12 stars 2 forks source link

Formatting in plain html version of lecture 5a #165

Open richardreeve opened 3 years ago

richardreeve commented 3 years ago

In Lecture 5a - https://ibahcm.github.io/RPiR/lectures_html/RPiR5a-reporting.html - the emphasis code blocks:

### <b>

and

### </b>

appear in the html, when they should just disappear.

soniamitchell commented 3 years ago

They don't disappear here either https://ibahcm.github.io/RPiR/lectures_html/RPiR2c-development.html

Why do you think they should? Is there any documentation I can reference? Presumably they're being interpreted as R comments..

richardreeve commented 3 years ago

Yes, the docs are here - https://bookdown.org/yihui/rmarkdown/ioslides-presentation.html#code-highlighting - the text within those pseudo-html blocks should just be in bold, but if they are just removed in the html that would be fine. Or maybe ### <b> could just be replaced by <b> in the html, and so on.

soniamitchell commented 3 years ago

Yes, but this describes the ioslides_presentation output, not html_document output?

richardreeve commented 3 years ago

Yes, I know, but what I'm saying is that this text is supposed to formatting, but the html_document output doesn't know, and it would be nice to fix that if there's something we could do...

soniamitchell commented 3 years ago

Ahh... got it 👍 That will require some fiddling around but I think it might be doable...

soniamitchell commented 2 years ago

Code chunk formatting is a feature of ioslides, whereas the html is generated by rmarkdown::render(). Whatever fiddling I might have thought possible is now lost and likely overly ambitious.

soniamitchell commented 2 years ago

Actually, if you set output: ioslides_presentation: keep_md: true, then substitute out the ### <b> lines before generating the html, that might work.

soniamitchell commented 2 years ago

This fix broke html slide generation on the website.