Automattic / Automattic/simplenote-android

Markdown Preview Not Respecting Line Breaks

Open
#1,542 2 comments 0 reactions 0 assignees View on GitHub
Dominant language
Java
Stars
1.9k
Forks
318
Avg merge
15h 23m
Merged PRs (30d)
5

Description

### Expected
When previewing a note, text separated by a single line break should be displayed on separate lines.

### Observed
When previewing a note, text separated by a single line break is displayed on the same line.

### Reproduced
1. Create a new note with markdown enabled.
2. Add text to the note with a single line break.
3. Switch to preview.

![Screenshot_20220321-100840](https://user-images.githubusercontent.com/42454301/159279154-c3400d15-e9ca-47b0-a474-8bbe5dd07df0.jpeg)
![Screenshot_20220321-100848](https://user-images.githubusercontent.com/42454301/159279157-8482ceb6-5309-4fa9-bcd8-4fd41f3e34bd.jpeg)

Tested on:
Device Make: Google
Device Model: Pixel 3
Android Version: 12
Simplenote Version: 2.23

Contributor guide

Open the contributing guide

Research direction

Reproduce the issue in the Android app using a note with Markdown enabled and a single line break, then trace the preview rendering path. Done means previewed text preserves the single line break as a separate displayed line.

Written by the indexing model from the issue text.

Assessment

Tech stack
android, java
Domain
mobile-dev
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
38/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.