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

Text and math interchangeability #39

Closed
stefnotch opened this issue Jan 29, 2023 · 1 comment
Closed

Text and math interchangeability #39

stefnotch opened this issue Jan 29, 2023 · 1 comment
Labels

Comments

@stefnotch
Copy link
Owner

stefnotch commented Jan 29, 2023

If I have a formula like this, where "cat" is plaintext (and should behave like boring old text)...

image

What should happen if I select the text a and paste it somewhere else? Should it turn into a math a?
Answer: It should become a math a.

And what happens if I select the $\sqrt{2}$ and paste it into the text?
Options:

  • Stringify it (sqrt(2))
  • Split the text and put the math stuff there. The semantics layer will then complain about a missing closing quote, because there's maths inside of the text. (chosen option for now)
  • Put it in there anyways and render it funkily
  • Put it in there, but wrap it in a math row container.
@stefnotch
Copy link
Owner Author

#21 (comment)

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

No branches or pull requests

1 participant