{{ message }}
/ kramdown Public

# Block attribute after math block not consistently handled#533

Closed
opened this issue Aug 3, 2018 · 5 comments
Closed

# Block attribute after math block not consistently handled #533

opened this issue Aug 3, 2018 · 5 comments
Assignees
Labels

### luc-j-bourhis commented Aug 3, 2018 • edited

 The following code require 'kramdown' text = < math_eng).to_html produces the following output when math_eng == 'mathjax' 

This is an example of math

and the rest follows.

 and the following output when math_eng = 'katex' 

This is an example of math

$$\nabla\cdot E = \rho$$

and the rest follows.

 I do realise that a class can't be set for a 
self-assigned this Aug 3, 2018

### gettalong commented Aug 3, 2018

 Any suggestions?

### luc-j-bourhis commented Aug 4, 2018 • edited

 Actually, to my surprise, the HTML Living Standard specify that «The WHATWG DOM standard defines the user agent requirements for the class, id, and slot attributes for any element in any namespace.». HTML5 too, again through global attributes. So 

### gettalong commented Aug 4, 2018

 Cool, thanks for the update. So just adding the class and id attributes, if specified, to the 

### luc-j-bourhis commented Aug 4, 2018

 Yes, id and class would suit me. Note that I opened issue #2041 on Mathjax repo, suggesting that class and id on the script tag are passed to the tags created by Mathjax to actually display the equation. That would nicely fit with this present issue. Thanks!

### gettalong commented Apr 16, 2020

 @luc-j-bourhis Took a while but with the next release the MathJax engine adds 
 and  tags around the math (which incidentally also changed to use the standard syntax instead of