8 Comments
Guest *Ha-yeon Deborah Lee* @ 2019-02-12 17:59:35 originally posted:
Good! Thanks
Guest *João Carvalho* @ 2019-11-25 13:20:32 originally posted:
Hi Xie and thanks for the great article and the Xmin theme (I've borrowed it and add some modification for my website).
Just a question, when using a typical markdown editor, if you write the math expressions in between backticks everything gets badly formatted. Do you have any solution for this, or just check your rendered output in a browser?
Check the rendered output in a browser. LiveReload can help a lot: https://bookdown.org/yihui/blogdown/livereload.html
Originally posted on 2019-11-25 15:10:19
Guest *Gu Junhua* @ 2019-11-25 15:28:11 originally posted:
Thank you for this article and I steal the code :-)
Guest *Matthijs Kooijman* @ 2019-12-09 17:50:00 originally posted:
Great writeup! I've been trying your script and it works fine. However, it does not exactly what I want (I would like to use indented blocks for centered formulas rather than backticks). I considered modifying the script, but also wondered: Would it not be possible to, rather than preprocess the document to let MathJax find the math text normally, to call MathJax directly and maybe pass a list of nodes to process, or otherwise configure it to just process the code as expected?
Turns out this is indeed possible, so I wrote a small blogpost with an alternative implementation here: https://www.stderr.nl/Blog/Blog/MathJaxInMarkdown.html
Thanks a lot for sharing your approach! It does look like better than mine!
Originally posted on 2019-12-10 19:05:22
Guest *XueSong Ye* @ 2020-04-16 04:10:04 originally posted:
Maybe you can consider switching to https://github.com/yuin/goldmark? It has great math extension goldmark-mathjax which supports inline math using the $ delimiter and block math using the $$ delimiter.
Thanks a lot for letting me know! My solution in this post is a general one, and doesn't depend on a specific Markdown rendering engine. If I decide not to use Hugo someday (which is unlikely, I think), I can still use this solution.
Originally posted on 2020-04-16 15:48:17
Guest *Hanyu* @ 2021-03-05 05:35:50 originally posted:
Thanks Yihui. But I don't know how to use this code. I'll appreciate it if you could say more about it.
You need to know how to add JavaScript to your website like this: https://github.com/yihui/hugo-xmin/blob/master/exampleSite/layouts/partials/foot_custom.html#L1-L2
Originally posted on 2021-11-12 05:28:02
Guest *Anny Muliterno* @ 2021-11-07 11:54:27 originally posted:
You are a wizard Yihui!
in wich script should I put the code? Should it be inside partials or something like that?
Like this: https://github.com/yihui/hugo-xmin/blob/master/exampleSite/layouts/partials/foot_custom.html#L1-L2
Originally posted on 2021-11-08 14:43:58
Guest *Scott* @ 2021-11-30 11:58:37 originally posted:
Thanks for all the work you do ! Do you think it will be possible at some point to support color in equations in Rmd documents and presentations? Like this: https://twitter.com/mdekstrand/status/1373400822470504451
Whether this is possible is up to MathJax. I don't know if MathJax supports colors. You may do a quick search.
Originally posted on 2021-11-30 17:43:32
Sign in to join the discussion
Sign in with GitHub