Pipetable left column alignment #58

Closed
opened 2026-01-29 14:23:56 +00:00 by claunia · 1 comment
Owner

Originally created by @rainmaker2k on GitHub (Sep 23, 2016).

The HtmlTableRenderer seems to ignore the left alignment property in the ColumnDefinition. The default user styles for the table header in at least Chrome will default it to center.

Can this be changed to include text-align: left in the <th element?

Originally created by @rainmaker2k on GitHub (Sep 23, 2016). The [HtmlTableRenderer](https://github.com/lunet-io/markdig/blob/fa281f1ca11c7b848509b2928cea2526f0fd74fe/src/Markdig/Extensions/Tables/HtmlTableRenderer.cs) seems to ignore the left alignment property in the ColumnDefinition. The default user styles for the table header in at least Chrome will default it to center. Can this be changed to include `text-align: left` in the `<th` element?
claunia added the enhancement label 2026-01-29 14:23:57 +00:00
Author
Owner

@xoofx commented on GitHub (Sep 23, 2016):

This is fixed by commit d5e6f17.

The behavior is:

  • no align => the HTML default applies (th center, td left), style is not applied
  • align defined => th and td get the same style alignment
@xoofx commented on GitHub (Sep 23, 2016): This is fixed by commit d5e6f17. The behavior is: - no align => the HTML default applies (th center, td left), style is not applied - align defined => th and td get the same style alignment
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/markdig#58