mirror of
https://github.com/xoofx/markdig.git
synced 2026-04-23 14:09:28 +00:00
[PR #863] Infer pipe table column widths from separator row #1262
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Original Pull Request: https://github.com/xoofx/markdig/pull/863
State: closed
Merged: Yes
Hi
First off, thank you for your great library — I use it to convert Markdown to Open XML in my DocxTemplater, and it’s been working beautifully.
In my use case, I needed a way to control column widths in pipe tables. Unfortunately, the grid table syntax wasn't an option because it requires monospaced fonts.
This PR introduces a small but useful enhancement:
What’s included
PipeTableOptions.InferColumnWidthsFromSeparator.This allows authors to write tables like:
…to get column widths of 25%, 50%, 25%, depending on the relative dash count.
Let me know if you'd like changes or further refinements — happy to adjust!
Thanks again for your work!