xoofx / xoofx/markdig

How do I emit a class attribute on table element

Open
#188 4 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

enhancement question
Dominant language
C#
Stars
5.3k
Forks
510
Avg merge
11d 3h
Merged PRs (30d)
6

Description

First of all, huge thanks for this library - it's really helped me on a recent project.

I'm using the PipeTableExtension for tables, and I'd like the tables to be emitted with a particular class. i.e.

<table class="my-table">
    <thead> ...etc

I've had a browse through the code and it looks like there is some kind of baked in support for rendering attributes on HTML elements, but I can't work out how to configure my pipeline to do this. Is it possible?

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 reading the PipeTableExtension and the library's existing HTML element attribute support. Trace how a pipeline configures table rendering and verify the result by rendering a pipe table with a class attribute on its table element.

Written by the indexing model from the issue text.

Assessment

Tech stack
csharp
Domain
tooling
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.