MacDownApp / MacDownApp/macdown

new line shouldn't be required before fenced codeblock

Open
#322 3 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug upstream
Dominant language
Rich Text Format
Stars
9.8k
Forks
1.2k
PR merge metrics
No merged PRs in 30d

Description

It seems that a new line is required before a fenced code block, it shouldn't be.

``````
text
```
fenced code block
```
``````

http://johnmacfarlane.net/babelmark2/?text=no+need+for+new+line%0A%60%60%60%0Abefore+fenced+code+block%0A%60%60%60

Presumably this is an issue upstream?

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by comparing the reported input with the linked Babelmark result and confirm whether the behavior is specific to MacDown or an upstream Markdown parser. No file or test is named in the issue, so identify the parser entry point before determining how the missing newline is handled; done means fenced code blocks render correctly without a preceding blank line or the issue is confirmed upstream.

Written by the indexing model from the issue text.

Assessment

Tech stack
markdown
Domain
desktop
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.