Line break does not work
Nobody has claimed this yet.
Assessment
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Newbie friendliness
- 35/100
- Issue type
- Bug
- Clarity
- Mostly clear
- Activity status
- Stale
- Tech stack
- markdown, react, typescript
Research direction
Start by reproducing the reported line-break behavior in the MarkdownPreview component using the source example. Trace how its markdown rendering handles a single newline, then verify that the rendered output preserves the break between “Hello.” and “World”.
Written by the indexing model from the issue text.
Description
Hi guys.
Thank you for your time to develop this awesome library.
I'm recently figure out that the line break in markdown is not rendered correctly. Example:
<MarkdownPreview
source={`
Hello.
World
`}
style={{ padding: 16 }}
/>
will render
Hello. World
instead of
Hello.
World
Do you know how to fix it?
Thanks
- Dominant language
- TypeScript
- Stars
- 350
- Forks
- 54
- PR merge metrics
- No merged PRs in 30d
Getting set up
This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.
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.
More from uiwjs/react-markdown-preview
-
Difficulty 3/5 1-2 days Newbie friendliness 62/100
uiwjs/react-markdown-preview#292 ·
-
Error when evaluating SSR module virtual:react-router/server-build: Unknown file extension ".css"Open
Difficulty 3/5 1-2 days Newbie friendliness 30/100
uiwjs/react-markdown-preview#288 ·
-
Difficulty 3/5 1-2 days Newbie friendliness 25/100
uiwjs/react-markdown-preview#287 · 1 comment ·
-
Bundle too heavy?Open
Difficulty 4/5 3-5 days Newbie friendliness 25/100
uiwjs/react-markdown-preview#286 · 1 comment ·
-
Strikethrough Error!Open
Difficulty 2/5 1-3 hours Newbie friendliness 45/100
uiwjs/react-markdown-preview#284 · 1 comment ·
All issues in uiwjs/react-markdown-preview
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
Maintainers usually reply within 1 day
-
bug:new
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
callstackincubator/simlock#350 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
openwatersio/maritime-zones#33 ·
Maintainers usually reply within 1 day
-
Booking email verification fails for plus aliases with impersonation protection enabledPossibly taken @kankadev claimed this today. Open
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
calcom/cal.diy#30293 · 1 comment ·
Maintainers usually reply within 5 days
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
AOSSIE-Org/DebateAI#611 ·
Maintainers usually reply within 3 days