-
-
Notifications
You must be signed in to change notification settings - Fork 16
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
math in titles #39
Comments
Not sure if this really is a bug or working as intended. Math blocks have no context of where they are, so extra styling is incredibly difficult to apply. We could get more context by using a codemirror extension but I haven't found a way to completely stop Obsidian's own math blocks. |
i mean the built in latex math blocks work fine in titles so i definitely think this is a bug |
Hi I'm doing similar thing last week(rendering typst to svg and embed them in markdown). To solve this you need to adjust the svg: by changing the unit of its height and width to Code here: https://github.com/Myriad-Dreamin/typst.ts/blob/main/projects/rehype-typst/lib/index.js#L116 |
Also I see currently the css is set to
There can be better control of this by querying the location of text baseline in typst and set |
I guess the optimize svg thing is no longer needed too because currently typst use a stable id to name glyphs so there is no collisions now. |
As of version 0.9 the output SVG's size is in
|
when using typst in titles, it's not rendered as big as it should be
# Big Theta - $Theta$
Text:
Rendered:
The text was updated successfully, but these errors were encountered: