QuantumBadger / QuantumBadger/RedReader
Post rendering collapses line breaks in preformatted blocks
Nobody has claimed this yet.
- Dominant language
- Java
- Stars
- 2.7k
- Forks
- 527
- Avg merge
- 20d 10h
- Merged PRs (30d)
- 3
Description
If a post is given in Markdown with a pre-formatted block (e.g. one bounded by lines of ```), then line break characters in the block should be rendered literally, as line breaks, not collapsed into inter-word space.
In the case of comments, RedReader displays such blocks correctly.
However, in the case of posts, line breaks are incorrect collapsed.
Tests are given for version 1.2, running on LineageOS for microG, version 19 build timestamp 2012 Nov 02.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reproducing the difference between post and comment rendering with a Markdown preformatted block, using the issue's LineageOS for microG details as context. Trace the Android Markdown rendering path for posts and compare it with comments. Done means line breaks inside fenced blocks render literally for posts as they already do for comments.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- android, java
- Domain
- mobile
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100