How can I allow multi-line code blocks inside a LI (List Item) ? #5830
Unanswered
cnicodeme
asked this question in
Questions & Help
Replies: 1 comment 1 reply
-
A list item technically does allow code block content, but it enforces that a paragrah is the first element: So, technically you could do a soft break (shift + enter) and have a code block as the second piece of content. But, you'll probably just want to extend this extension to just be |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hey! It seems that under the current form, it is not possible to have a multi-line code block inside a LI (ol/ul).
Here's a quick example (using the first CodeSandbox template I found that uses Vue2 but it's the same with Vue3):
As long as you are in a
<li />
, doing three backticks doesn't trigger the code block and hitting enter creates a new<li />
.How can I set up the Code Blocks to work inside the
<li />
?Thanks in advance.
Beta Was this translation helpful? Give feedback.
All reactions