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

clay-make-form ignores some quarto cases #5

Open
genmeblog opened this issue Mar 29, 2024 · 2 comments
Open

clay-make-form ignores some quarto cases #5

genmeblog opened this issue Mar 29, 2024 · 2 comments

Comments

@genmeblog
Copy link
Member

Trying to render some formulas:

(kind/md "$$\\frac{1}{2}$$")

When calling clay-make-form - formula is not rendered while clay-make-ns-quarto-html renders it properly.

@daslu
Copy link
Member

daslu commented Mar 30, 2024

@genmeblog
Right, thanks.

The problem is that clay-make-form uses the [:html] format, rather than [:quarto :html], and currently, Clay supports TeX only through Quarto.

scicloj/clay#36

Probably we should make it configurable, so that the user can override the format used by clay-make-form through their Clay config. This will make the experience slower but more complete.

daslu added a commit that referenced this issue Mar 30, 2024
…default `[:html]` overridable in user side (e.g., by `[:quarto :html]`) (see #5)
@daslu
Copy link
Member

daslu commented Mar 30, 2024

@genmeblog
In the new version 1.3, sending a form to Clay does not explicitly specify :format [:html].
This is still the default behavior due to Clay's defaults, but you can override it in your clay.edn config by adding :format [:quarto :html]. This will render the above example correctly (but less quickly).

I am leaving this open since this is still a problem. Eventually, all formats should support TeX.

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