mirror of
https://github.com/youwen5/blog.git
synced 2024-11-24 18:03:50 -08:00
update initial post
This commit is contained in:
parent
bbb0b28bef
commit
1c55bd7719
1 changed files with 13 additions and 5 deletions
|
@ -77,11 +77,15 @@ seemed like a little too much work to maintain. I switched to hakyll because
|
||||||
### speaking of math
|
### speaking of math
|
||||||
|
|
||||||
We can have math inline, like so:
|
We can have math inline, like so:
|
||||||
$\int_\infty^\infty \, e^{-x^2}\,dx = \sqrt{\pi}$. This site ships MathML math
|
$\int_\infty^\infty \, e^{-x^2}\,dx = \sqrt{\pi}$. This site ships semantic
|
||||||
with its HTML, and the MathJax script to the client. MathJax renders all of the
|
MathML math with its HTML, and the MathJax script to the client.
|
||||||
math so it looks nice and standardized across browsers, but the math still
|
|
||||||
displays regardless (like say if MathJax couldn't load due to slow network)
|
It'd be nice if MathML could just be used and supported across all browsers, but
|
||||||
because of MathML. Best of both worlds. Pros:
|
unfortunately we still aren't quite there yet. Firefox is the only one where
|
||||||
|
everything looks 80% of the way to LaTeX. On Safari and Chrome, even simple
|
||||||
|
equations like $\sqrt{\pi}$ render improperly.
|
||||||
|
|
||||||
|
Pros of MathML:
|
||||||
|
|
||||||
- A little more accessible
|
- A little more accessible
|
||||||
- Can be rendered without additional stylesheets. I just installed the Latin
|
- Can be rendered without additional stylesheets. I just installed the Latin
|
||||||
|
@ -93,6 +97,10 @@ Cons:
|
||||||
- Isn't fully standardized. Might look different on different browsers
|
- Isn't fully standardized. Might look different on different browsers
|
||||||
- Rendering quality isn't as good as KaTeX
|
- Rendering quality isn't as good as KaTeX
|
||||||
|
|
||||||
|
This site has MathJax render all of the math so it looks nice and standardized
|
||||||
|
across browsers, but the math still displays regardless (like say if MathJax
|
||||||
|
couldn't load due to slow network) because of MathML. Best of both worlds.
|
||||||
|
|
||||||
Let's try it now. Here's a simple theorem:
|
Let's try it now. Here's a simple theorem:
|
||||||
|
|
||||||
$$
|
$$
|
||||||
|
|
Loading…
Reference in a new issue