linjer / jekyll-katex

[DEPRECATED] Jekyll plugin for easy server-side math rendering via KaTeX
MIT License
96 stars 8 forks source link

Support for latex style math-mode fencing using $ (inline) and $$ (display mode) #1

Closed zhzhzoo closed 5 years ago

stevecheckoway commented 6 years ago

It clearly does not support $…$ or $$…$$, but it would be nice. Having a switch to turn it on or off would be particularly great.

Dollar signs ($) are treated normally here.
{% katex on %}
Now every dollar renders math $x+y$.
…
{% katex off %}
Back to normal treatment.
linjer commented 6 years ago

This is a really great idea. I like this over having to open and close blocks everywhere. I think it would be fairly easy to implement. I'll give an implementation a try when I can.

linjer commented 6 years ago

@zhzhzoo @stevecheckoway I've opened PR #5 to address this. If you have the chance to give it a review I'd appreciate it.

If I don't hear from either of you within the next few days, I'll go ahead and publish the changes and hopefully it improves your experience.

stevecheckoway commented 6 years ago

I actually ended up writing my own implementation a while back. I’ll dig up the details later but I’m about to take off. So no need to wait for me.

linjer commented 6 years ago

@stevecheckoway maybe more reason to wait for your input or a PR from your side. Hopefully you have some time to help.

linjer commented 5 years ago

This feature has been added in version 0.3.0