commonmark / commonmark/cmark

Add a function to render inline nodes

Open
#147 4 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
C
Stars
2k
Forks
691
Avg merge
1d 16h
Merged PRs (30d)
1

Description

Currently, if children of the DOCUMENT node are inline nodes (e. g. TEXT), they don't get rendered. Is there a way to render a bunch of inline nodes with cmark (without wrapping them into a paragraph – I don't want a <p> tag)? Or is it guaranteed that rendering inline nodes one by one and concatenating them would produce the same result as rendering them all together (and so such a function wouldn't be needed)?

Contributor guide

No contributing guide indexed for this repository

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 reviewing cmark's existing document and inline-node rendering behavior, especially how the renderer handles DOCUMENT children. Determine whether a public function should render a group of inline nodes without a paragraph wrapper, and define completion by matching the expected combined rendering semantics without introducing a

tag.

Written by the indexing model from the issue text.

Assessment

Tech stack
c
Domain
tooling
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.