Skip to content

Simplify the Enter behavior in Markdown lists to only support “tight” lists #62

@yurivish

Description

@yurivish

(Not sure if this is the right place to report this issue since it's about the Desktop code editor, lmk if there's a better place and I'll move it!)

When it comes to lists, Observable's Markdown code editor has a few behaviors that I found surprising:

  1. Pressing enter twice past the end of a list results in an (imo) incorrect state with a newline after the list followed by an extra -:

Image

  1. It will delete a list item if you press enter in a line containing - :

Image

There's a wide range of preferences when it comes to editing so I'm not sure if these are bugs.

I sometimes use a markdown cell as a scratch space to maintain ideas and to-do items inside a notebook and would appreciate it if there was a way to tweak this behavior slightly. For 1., I would like pressing Enter twice to not insert any additional content beyond the newlines, and for 2., it would be nice if it did not delete the empty list item.

Metadata

Metadata

Assignees

No one assigned

    Labels

    desktopAn issue with Observable Desktop

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions