able-bio / suggestion-box

A place to submit issues for bugs, feature requests and other ideas related to Able.
https://able.bio
4 stars 0 forks source link

Inline LaTeX support #43

Closed RhettTrickett closed 4 years ago

RhettTrickett commented 4 years ago

@patrickcording is asking about inline LaTeX support, which I think we should look into adding if we can. Currently we only support block elements. Here's an example he's provided for reference:

Screen Shot 2020-01-06 at 10 48 28 PM

This Stack Overflow question might be helpful.

@drenther - could you take a look into this and let us know what you think?

drenther commented 4 years ago

@patrickcording @RhettTrickett I have had some implementations of it already and will soon push it to production.

RhettTrickett commented 4 years ago

Brilliant! Thanks @drenther

RhettTrickett commented 4 years ago

This update has been deployed. You can now use $...$ notation followed by a space to render inline.

@patrickcording - do you want to give this a try and let us know what you think?

@drenther - when you hit space to render, it feels more natural to also have a space inserted after the rendered formula. Not sure if it’s possible to add something like this or if anyone has other opinions?

patrickcording commented 4 years ago

Just tried it out, works exactly as I would expect. Very cool.

I'm looking forward to start using Able.

Minenash commented 4 years ago

This is an amazing feature, thanks for adding it! My only problems seem to restrictions from KaTeX itself.