Markdown shortcut for code blocks ```$lang followed by a new line? #533
jessicarush
started this conversation in
Ideas
Replies: 2 comments
-
|
I agree. It's also hard to figure out why the code block doesn't work when you don't add the space at the end of the |
Beta Was this translation helpful? Give feedback.
0 replies
-
|
@jessicarush @aleph2c thank you for sharing that - I agree that this can be improved. Do you want to open a PR for a fix? The code is actually part of the markdown shortcuts defined by Lexical. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
The current markdown shortcut for creating a code block is:
Type
```$lang(with $lang being any supported language, followed by space).I was actually stumped by this for longer than I care to admit, as I intuitively always hit the return key after typing
```$lang. My coworkers also do this so I don't think I'm alone. Is there a way to extend themarkdownShortcutPluginto also handle creating code blocks with:Type
```$lang(with $lang being any supported language, followed by a new line).Is this possible?
Beta Was this translation helpful? Give feedback.
All reactions