Skip to content

Pasting and previewing indentation and nested list items #6

Description

@tomreinert

When i paste some markdown like the following, the indentation is removed in mist, which also affects nested list items.

With the nesting corrected manually, I would've expected the nested list items to have different bullet points than the parents, as in vanilla html.

My markdown:

# Heading 1

## Heading 2

Paragraph one. This is a regular paragraph with some text in it. We might have some longer text here and even sentences that just won't end.

Paragraph two. Another regular paragraph. It may reference `inline_code` or a `path/to/file.ts`.

  This is just indented text.

## Heading 2 (another)

**Bold label one**
- Top-level list item 1
- Top-level list item 2
- Top-level list item 3

**Bold label two**
- Top-level list item 1
- Top-level list item 2
- Top-level list item 3

## Heading 2 (with nested list)

Short intro line before the list.

- Top-level list item
  - Nested sub-item
  - Nested sub-item
    - Deeper nested sub-item
    - Deeper nested sub-item
  - Nested sub-item

- Top-level list item
  - Nested sub-item
  - Nested sub-item

After pasting to mint:

Image

Preview

Image

After correcting the indentation:

Image

Expected result of nested items: https://www.w3schools.com/html/tryit.asp?filename=tryhtml_lists_nested

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions