-
-
Notifications
You must be signed in to change notification settings - Fork 148
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
Trigger insert of markdown as in toolbar (but from code) #392
Comments
Guess I could just replace from string and insert the markdown, but if there is anything built for it - It would still be great to utilise that. |
react-md-editor/src/commands/code.tsx Lines 59 to 93 in 954e017
@MadsFrost Here is an example, you can follow along. |
Thank you so much 🔥 :) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi, awesome library, I've had a blast trying to create my own file/markdown notes editor for school.
I am currently looking into a way of writing a command in the Markdown Editor where i can give a string of e.g: "/table" and with a space this would trigger an insert of markdown string containing an example table.
Is there any way to go through the same "api" as the toolbar does:)?
(I'm sort of new and your code is very compact and neat - but hard for a beginner to read, so I had to ask 🚀)
The text was updated successfully, but these errors were encountered: