xoofx / xoofx/markdig

Weird format when nesting custom containers.

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

Nobody has claimed this yet.

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

Description

I'm trying to create some utility classes for use in my markdown.

Give this:

:::section-columns

:::section-column

column 1

:::

:::section-column

column 2

:::

:::

I get this:

<div class="section-columns">
    <div class="section-column">
        <p>column 1</p>
    </div>
</div>
<div class="section-column">
    <p>column 2</p>
</div>
<div>
</div>

I expected (wrongly?) this:

<div class="section-columns">
    <div class="section-column">
        <p>column 1</p>
    </div>
    <div class="section-column">
        <p>column 2</p>
    </div>
</div>

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 locating the custom-container parsing and rendering entry points in Markdig, using the nested section-columns and section-column example from this issue as the reproduction. Add a regression test for the expected nested HTML and verify that the outer container contains both inner columns.

Written by the indexing model from the issue text.

Assessment

Tech stack
csharp, markdown
Domain
tooling
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 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.