nschloe / markdown-math-acid-test

Showcase GitHub math bugs
25 stars 1 forks source link

Code with _ and # can't be rendered #1

Closed TanguyBarthelemy closed 1 year ago

TanguyBarthelemy commented 1 year ago

I try to render the equations:

$\_$

$_$

$$ mean\_Day_{i, j} = \sum_{years} Day_{i, j, k} $$

$$ mean_Day{i, j} = \sum{years} Day_{i, j, k} $$

$$ mean = \#group_i + \#group_j $$

$$ mean = #group_i + #group_j $$

I saw that you covered the subject well. Maybe I missed something or these are bugs in the formula display under Github.

Thank you for your opinion!

nschloe commented 1 year ago

Never use the $...$ syntax, it's inherintly broken. Best use

$`...`$

Haven't tried, but I'm guessing this will fix all your issues.

TanguyBarthelemy commented 1 year ago

Thanks! it solved my problem for inline code.

For example, the variable $var\_mean$ is accepted now and this one $\#groupe_{13}$ also!

but for code in double $$, it doesn't I have the impression:

$$ mean\_day_{i, j} = \#group_i + \#groupj $$ $$mean\_day{i, j} = \#group_i + \#groupj$$ $$ `mean_day{i, j} = #group_i + #groupj$$ $$mean_day{i, j} = #group_i + #group_j`$$

I will more test it!

nschloe commented 1 year ago

Don't use the double $$-syntax either, use

```math
...
TanguyBarthelemy commented 1 year ago

Ok thank you very much!