Automattic / Automattic/simplenote-macos

Indented checklists get flattened on preview

Open
#618 2 comments 0 reactions 0 assignees View on GitHub
bug
Dominant language
Swift
Stars
1.6k
Forks
172
Avg merge
11h 17m
Merged PRs (30d)
3

Description

Indented checklists do not get properly converted to nested checklist items on any platform except web/Electron 😭

Tested this one on version 1.12.0.

### Expected
Indentation should be converted to nested list items, whether a checklist or a normal list.

Reported in #3182362-zen

### Observed
Nested checklists get flattened.

### Reproduced

## Test content:

```
- [ ] top level

- [X] indented item

- [ ] indented again
```

## Preview in iOS:

Issue opened here: https://github.com/Automattic/simplenote-ios/issues/827

![IMG_239DA3344051-1](https://user-images.githubusercontent.com/52152/88828762-8a07af80-d180-11ea-8ac9-fc5a3ab56b7d.jpeg)

## Preview in OSX:

Screen Shot 2020-07-29 at 9 48 42 AM

## Preview in web/Electron:

Screen Shot 2020-07-29 at 9 50 29 AM

## Preview on published note

(I will open a separate backend issue for this)

Screen Shot 2020-07-29 at 9 50 58 AM

Contributor guide

Open the contributing guide

Research direction

Start by reproducing the macOS preview with the checklist content shown in the issue, then trace the preview conversion path to find where indentation is flattened. Done means indented checklist and normal list items render as nested list items in the macOS preview, matching the web/Electron result.

Written by the indexing model from the issue text.

Assessment

Tech stack
swift
Domain
desktop
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.