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

Line break Distances are unsupported #27

Open
creativecreatorormaybenot opened this issue Jan 8, 2021 · 0 comments
Open

Line break Distances are unsupported #27

creativecreatorormaybenot opened this issue Jan 8, 2021 · 0 comments

Comments

@creativecreatorormaybenot
Copy link
Contributor

This is somewhat connected to #8.

It is a common use case to use \\[distance] to specify the distances of line breaks.

An example would be \\[3mm].

Example

Check https://katex.org with 1\\2\\[3mm]3 - you will understand it quickly :)

Docs

It is documented below the table in the environments section in the KaTeX docs.

Current situation

image

This is somewhat unfortunate because it is worse than not properly accounting for the distance (the "3mm" should not be contentful).

Solution

I think that this should already be easily possible using the current "Generate a list of broken-down widgets" API style.

A makeshift solution might be to make the parser detect it (adapt it from the KaTeX parser) and just ignore the actual distance. That would already be better than showing it as symbols :)

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

1 participant