Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Escape LaTeX math with Liquid "raw" tags? #110

Closed
drscotthawley opened this issue Mar 21, 2020 · 1 comment
Closed

Escape LaTeX math with Liquid "raw" tags? #110

drscotthawley opened this issue Mar 21, 2020 · 1 comment

Comments

@drscotthawley
Copy link
Contributor

drscotthawley commented Mar 21, 2020

This is a Feature Request.

At the request of @hamelsmu in PR github/covid19-dashboard#89, I'm opening this Issue to see if there could be automatic support for LaTeX equations in nbdev such that they don't generate conflicts with Liquid (for Fastpages) later.

Could you make it so that LaTeX equations (in text cells) such as

$$ ... $$

gets automatically replaced with

{{% raw %}}
$$ ... $$
{{% endraw %}}

?

Not sure if this would introduce problems elsewhere. However, it would help with Fastpages supporting seeming 'innocuous' math equations (pun intended) such as in this covid-19 dashboard notebook github/covid19-dashboard#89

Perhaps some command line switch like --liquid could be used to let nbdev know that its output is intended for use with Liquid.

@sgugger
Copy link

sgugger commented Mar 22, 2020

Added. Hope it will be enough to solve your issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants