Skip to content

Cannot enter code block inside list #8216

Open
@matthijskooijman

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:

  1. This is a list
    with a code block
    of two lines
    
  2. 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:

image

But when I type it manually (using shift-enter to continue the first list item), it does not recognize this at all:

image

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      Cannot enter code block inside list · Issue #8216 · outline/outline