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

Subscript and superscript formatting not rendered correctly #565

Open
jcoliver opened this issue Oct 1, 2019 · 2 comments

Comments

@jcoliver
Copy link
Contributor

commented Oct 1, 2019

In the knitr lesson (episode 15), subscripts and superscripts are not rendered correctly online. This is due to a dependency on MathJax that is not part of the Carpentries template (see discussion at carpentries/styles#154). One possible workaround is to include MathJax via the YAML header for the specific episode. i.e. for episode 15, we could add:

require_mathjax: true

to the YAML header. This may precipitate challenges when Carpentries styles are updated. Maybe. Any thoughts, @naupaka ?

See also discussion in #564 .

@naupaka

This comment has been minimized.

Copy link
Member

commented Oct 2, 2019

Hmmmm. Seems like the easy fix for now is to add this to the header, but then things might break in the future. I'm probably a +1 for adding to the YAML, but I also feel like this is a little above my pay grade since it's more a question for the style folks. Naive question: normal html sup and sub tags don't work?

@jcoliver

This comment has been minimized.

Copy link
Contributor Author

commented Oct 2, 2019

I suspect <sup> and <sub> will work, but immediately succeeding the sub/superscript section is an example of LaTeX math formula formatting, which is also not rendered correctly. I imagine one could use html tags to render a formula, but that terrifies me. Stay tuned for more input from the style gurus.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
2 participants
You can’t perform that action at this time.