xoofx / xoofx/markdig

Codeinline in table

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

Nobody has claimed this yet.

enhancement
Dominant language
C#
Stars
5.3k
Forks
510
Avg merge
8d 5h
Merged PRs (30d)
5

Description

@xoofx I found an issue for codeinline in table, see the follow example:

`ds|a
-|-
fd|y`

it will be rendered as :

<p>
  <code>ds|a -|- fd|y</code>
</p>

Would you like to follow table rule here?

If you don't got enough time to fix this, I can help to provide a PR.

BTW, is there any reason why PipeTableParser is a InlineParser? It's should more like a BlockParser. Seems all the leafinline rule (which can contain '|') will break the table in this way.

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 with PipeTableParser and reproduce the inline-code example from the issue. Compare its parsing with the linked GFM table rule, then verify that pipe characters inside inline code no longer prevent the surrounding table from being recognized and that the rendered output matches the intended table structure.

Written by the indexing model from the issue text.

Assessment

Tech stack
csharp
Domain
tooling
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
42/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.