xoofx / xoofx/markdig

Render Container - Only one class rendered

Open
#382 4 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

Hello,

It seems that when I create a container with more than one class, only the first class is rendered.

The following Markdown:

::: a-class another-class
:::

I would expect the following:

<div class="a-class another-class"></div>

Instead I am getting only the first class rendered.
I have created a .Net Fiddle to demo

I guess this is an issue with HtmlRenderer.WriteAttributes ?

Thanks

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 tracing the container attribute handling around HtmlRenderer.WriteAttributes using the Markdown example and linked .Net Fiddle. The work is done when rendering ::: a-class another-class ::: produces a div whose class attribute contains both classes, with a regression check if the existing test structure is found.

Written by the indexing model from the issue text.

Assessment

Tech stack
csharp, markdown
Domain
tooling
Issue type
Bug
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Clearly specified
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.