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

KaTeX headers are missing for documentation pages. #1092

Closed
gadmm opened this issue Mar 20, 2024 · 2 comments · Fixed by #1096
Closed

KaTeX headers are missing for documentation pages. #1092

gadmm opened this issue Mar 20, 2024 · 2 comments · Fixed by #1096

Comments

@gadmm
Copy link

gadmm commented Mar 20, 2024

The KaTeX <link> and <style> headers seem to be missing in html files generated from mld files.

Example input mld file:

{0 Math}

Here is some math {m 4^{-10}}.

Generated html:

<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml"><head><title>math (math)</title><meta charset="utf-8"/><link rel="stylesheet" href="odoc.css"/><meta name="generator" content="odoc 2.4.1"/><meta name="viewport" content="width=device-width,initial-scale=1.0"/><script src="highlight.pack.js"></script><script>hljs.initHighlightingOnLoad();</script></head><body class="odoc"><header class="odoc-preamble"><h1 id="math"><a href="#math" class="anchor"></a>Math</h1><p>Here is some math <code class="odoc-katex-math">4^{-10}</code>.</p></header><div class="odoc-content"></div></body></html>

(missing the katex js script & so on).

The KaTeX <link> and <style> headers are correctly present in documentation for the mli files in the same project.

I am using odoc 2.4.1.

@panglesd
Copy link
Collaborator

Thanks for the report ! Happy to see the math syntax used 🙂

Should be fixed by #1096.

@gadmm
Copy link
Author

gadmm commented Mar 22, 2024

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

Successfully merging a pull request may close this issue.

2 participants