Inline code language
Nobody has claimed this yet.
Assessment
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Newbie friendliness
- 52/100
Research direction
Review the proposed implementation in socketry/cmark-gfm#1, then trace the inline code parsing and related API terminology in cmark. Confirm the colon syntax for language and quoted extended info, and normalize the API terminology from code fence to code info. Done means both forms are parsed as specified without whitespace before the colon.
Written by the indexing model from the issue text.
Description
I'd like to propose an extension that looks like this:
Ruby code: `Object.new`:ruby
Ruby code with extended info: `Object.new`:"ruby lineno=5"
When an inline code block is followed directly by a colon and a non-whitespace character, it gets used for the language.
In addition, some minor internal normalization to the API (don't call it code fence, rather, code info, which makes more sense).
See https://github.com/socketry/cmark-gfm/pull/1 for a proposed implementation.
- Dominant language
- C
- Stars
- 2k
- Forks
- 691
- Avg merge
- 1d 16h
- Merged PRs (30d)
- 1
Contributor guide
No contributing guide indexed for this repository
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 commonmark/cmark
-
Incorrect `parser->offset` advancement for closing fenced code blocks in `parse_code_block_prefix` Open
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
commonmark/cmark#590 · 3 comments ·
-
API documentation is missing an explanation of CMARK_NODE_CUSTOM_BLOCK and CMARK_NODE_CUSTOM_INLINE Open
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
commonmark/cmark#441 · 2 comments ·
-
Difficulty 4/5 3-5 days Newbie friendliness 35/100
commonmark/cmark#624 ·
-
Difficulty 3/5 1-2 days Newbie friendliness 65/100
commonmark/cmark#618 ·
-
Difficulty 3/5 1-2 days Newbie friendliness 55/100
commonmark/cmark#614 ·
All issues in commonmark/cmark
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 84/100
-
level/task module/gcp type/bug
Difficulty 2/5 1-3 hours Newbie friendliness 85/100
-
Difficulty 1/5 Under an hour Newbie friendliness 86/100
hapostgres/pg_auto_failover#1190 ·
-
docs
Difficulty 1/5 Under an hour Newbie friendliness 85/100
-
P3 sonic-vpp
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
sonic-net/sonic-buildimage#29662 ·