Description
Markdown, and also outline, supports having a code block inside a list. However, I cannot seem to enter this formatting in a clean way.
In Markdown, this is possible by indenting the code block to the same level as the list. E.g. this markdown:
1. This is a list
```
with a code block
of two lines
```
2. and a second item
Produces this output in github markdown:
- This is a list
with a code block of two lines
- and a second item
If I copy the above markdown source into outline with control-V, it is also rendered as expected, so outline does support this structure:
But when I type it manually (using shift-enter to continue the first list item), it does not recognize this at all:
Similarly, using /code
inside the list also does not work. When typing / after the shift-enter, nothing happens, no popup. When typing /code directly at the start of a list item, I get a popup, but then selecting /code and pressing enter does not do anything (the popup just disappears).
Outline (please complete the following information):
- Install: self-hosted (docker version)
- Version: v0.81.1
Desktop (please complete the following information):
- OS: Linux, Ubuntu 24.10
- Browser Firefox
- Version 133.0
Activity
linear commentedon Jan 9, 2025
OLN-827 Cannot enter code block inside list