-
Notifications
You must be signed in to change notification settings - Fork 150
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
feature: Able to match newline in onTextInput handler #481
Comments
@eguitarz Is this because you want to do the conversion only after hitting enter on the line? Would it work for your purposes to convert to h* after the user hits the space? e.g.:
To answer you question, the "\n" is not matched by the |
There's also a request for the ability to special-case newline-handling for different section types here: #432 (comment) |
@bantic I agree this could be a temporary solution, but if we can control
I believe this could make mobiledoc allows more interesting customizations. This might also be helpful if we are supporting |
+1 yes, if you are interested in making a PR that'd be great. Otherwise I'll mark this as a feature request and we'll get it in as soon as we can. |
Thanks, will see what I can do to make this happen! |
@bantic After thinking about this feature, I'm proposing two modifications.
This could grant fully controls on handling newline. For user to define their own newline behavior, they can How do you think about this? |
@eguitarz How about if |
@bantic That sounds perfect to me! I'll work on this - Add |
When implementing heading (H1, H2, H3) in WYSIWYG markdown editor, it would requires detecting if
newline
is entered. So I can do something like this:Is this possible in current structure?
The text was updated successfully, but these errors were encountered: