tc39 / tc39/ecmarkup

Feature request: Markdown-style paragraphs

Open
#40 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

feature
Dominant language
TypeScript
Stars
245
Forks
80
Avg merge
10h 46m
Merged PRs (30d)
2

Description

Based on an off-line discussion, I thought that

<emu-clause>
<h1>Foo</h1>
Bar

Baz
</emu-clause>

might at some point result in <p> tags around Bar and Baz. Instead, it seems that, as of v2.0.3, while the parser doesn't complain (an improvement!), it just passes the whitespace through as-is, without creating paragraphs.

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 at the parser entry point that handles and inspect how whitespace and blank lines are processed. The change is complete when prose separated by blank lines, such as Bar and Baz in the example, produces separate

elements without parser errors.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
tooling
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.