[FEATURE] multiline input
See original GitHub issueDescription
In order to be able to type content across multiple lines, you must add \begin{multiline} ... \end{multiline}
(#190). I think it would be better if there were an option to specify if you want to enable the multiline environment natively. In Katex, just adding \\
without any environment, specifies a newline.
Actual behavior
The problem is that if you go to mathlive.io and paste \begin{multiline} \end{multiline}
, you must press the left arrow in order to move the cursor in the right position. This could be solved by using mf.perform(['insert', '\\begin{multiline} #0 \\end{multiline}']);
but again, if the user clicks at the right blank side of the mathfield, they would focus outside the multiline environment.
Expected Behavior
I think that allowing both multiline and regular input side to side, is of no use, so it would make sense if only one mode was allowed, for the whole mathfield, without the need for the user to manually add \begin{multiline} ... \end{multiline}
.
Issue Analytics
- State:
- Created 4 years ago
- Reactions:10
- Comments:16 (6 by maintainers)
Top GitHub Comments
The name of the environment is
multline
notmultiline
. It’s the LaTeX spelling 🤷 and it’s working right now.This is how I’ve seen it in other editors (like microsoft Word): each time you go to a new line (by pressing the return key), a new math container is created for that line, so in this case it would be
(well don’t use br but some css to make each math-field span a new line)