Automattic / Automattic/simplenote-macos

Nested list adds new line space in Markdown Preview

Open
#1,058 1 comment 2 reactions 0 assignees View on GitHub
[feature] editor [feature] markdown [feature] note list bug
Dominant language
Swift
Stars
1.6k
Forks
172
Avg merge
11h 17m
Merged PRs (30d)
3

Description

### Expected

Creating a list in markdown will render the same as the original list.

### Observed

After a nested list item, there is a new line added by the preview.

### Reproduced

1. Open a note
2. Create a markdown formatted list with dash or asterisk.
3. Have a nested item and other list items

### Screenshot and a gif

#### Markdown (from user)
![markdown_preview_list_bug_originalMD](https://user-images.githubusercontent.com/52214/150356559-6f638e71-fd02-44ad-b2b7-5bd1e55556bf.jpeg)

#### Preview (from user)

Note the gap between the first nested items and the second list item

![markdown_preview_list_bug](https://user-images.githubusercontent.com/52214/150356775-0ccb516a-ad05-45bd-998c-22ff7c3e9480.jpeg)

#### Gif

![macOS_Simplenote_note_bug](https://user-images.githubusercontent.com/52214/150357894-4e32c86a-71c3-4631-849f-9080c82ee4ef.gif)

Identical to iOS here -

https://github.com/Automattic/simplenote-ios/issues/245

Make|Model|macOS Version|App Version
-|-|-|-
Apple | iMac | 11.6 Big Sur | 2.17

Contributor guide

Open the contributing guide

Research direction

Reproduce the issue in the macOS app using the listed steps: create a Markdown list with a nested item and subsequent list items, then compare the preview with the source and screenshots. Done means nested lists render without the extra line space; the payload does not identify a source file or test to run.

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
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.