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

Add CSS class to math when using MathJax with HTML #562

Closed
ewancarr opened this issue Jul 11, 2012 · 0 comments
Closed

Add CSS class to math when using MathJax with HTML #562

ewancarr opened this issue Jul 11, 2012 · 0 comments

Comments

@ewancarr
Copy link

Would it be possible to add a class (e.g. <p class="eq">) to the HTML output from MathJax equations, so they can be targeted with CSS selectors.

For example, the input

  $$e=mc^2$$

Would produce the HTML:

  <p class="eq">\[e=mc^2\]</p>

Currently, there is no class:

  <p>\[e=mc^2\]</p>
@jgm jgm closed this as completed in 6442e18 Jul 11, 2012
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