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

Math Rendering Improperly Renders Super and Subscripts #56

Open
johnblommers opened this issue Oct 9, 2020 · 4 comments
Open

Math Rendering Improperly Renders Super and Subscripts #56

johnblommers opened this issue Oct 9, 2020 · 4 comments
Assignees
Labels
enhancement New feature or request

Comments

@johnblommers
Copy link

The following examples:

$$f(x)=a_0+a_2x^2$$

$$x_{1,2}=\frac{-b\pm\sqrt{b^2-4ac}}{2a}$$

render badly as shown below:

Screenshot from 2020-10-08 21-00-41

The proper rendering is:

Screenshot from 2020-10-08 21-03-24

@kmwallio
Copy link
Owner

kmwallio commented Oct 9, 2020

This is fixed in the beta branch with the ability to change the preview and export CSS.

math-css

It will be included in the next release.

I'm currently torn between having the default CSS be no-styling, or keeping the current one that breaks math rendering. Feel free to let me know your thoughts. It's not immediately discoverable, so I'm leaning towards a more basic default style.

@kmwallio kmwallio added this to the Export & Preview Styles milestone Oct 9, 2020
@kmwallio kmwallio self-assigned this Oct 9, 2020
@kmwallio kmwallio added the enhancement New feature or request label Oct 9, 2020
@johnblommers
Copy link
Author

As of ThiefMD 0.1.2 this issue persists in the live preview.

The good news is that math formulas render fine in the export preview.

Good job keeping those updates coming!

@kmwallio
Copy link
Owner

Thanks! I'm still working on new default CSS. We started work on Export CSS support. This will adjust the default preview if you choose none or pick a different theme.

export_preferences

@johnblommers
Copy link
Author

Excellent! Thanks for the tip.

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

No branches or pull requests

2 participants