Automattic / Automattic/simplenote-ios

Nested list adds extra space in Markdown Formatting

Open
#245 1 comment 0 reactions 0 assignees View on GitHub
[feature] markdown [feature] preview bug
Dominant language
Swift
Stars
2.2k
Forks
297
Avg merge
13h 25m
Merged PRs (30d)
6

Description

#### Steps to reproduce
1. Begin writing a list in Markdown using '-' or '*'
2. Make a tab indent of a list item using the same symbols
3. Hit return and make an un-indented list item. using the same symbols.
4. Preview

#### What I expected
Formatting like this:
- Item 1
- Item 2
- Item 3
With no space between items 2/3

#### What happened instead
-Item 1
- Item 2

- Item 3

As you can see a space is inserted between items 2 and 3 automatically. I would rather have the space be something I have control over.

#### Simplenote version
- iOS app and MacOS app.
- Does not happen in the Web App for me

#### iOS version
4.6.5

#### Screenshot / Video

![unadjustednonraw_thumb_29d](https://user-images.githubusercontent.com/36801460/47935256-03cd1500-de97-11e8-9a04-6dd5fa9f4d0e.jpg)
![unadjustednonraw_thumb_29e](https://user-images.githubusercontent.com/36801460/47935257-03cd1500-de97-11e8-9121-7dcfc077cd68.jpg)

)

Contributor guide

Open the contributing guide

Research direction

Reproduce the nested Markdown-list example in the iOS and macOS apps, then compare it with the Web App where the issue does not occur. The work is done when returning from an indented item does not insert an unwanted blank space, while deliberate spacing remains possible.

Written by the indexing model from the issue text.

Assessment

Tech stack
ios, macos, markdown, swift
Domain
mobile
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.