Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for alignments in Markdown tables #261

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

kdeldycke
Copy link
Contributor

@kdeldycke kdeldycke commented Apr 4, 2023

This PR adds supports for column alignments for GitHub-Flavored Markdown (i.e. the github table format). This has been requested on issue #53 and reuse the same code as the pipe format.

Additionally, this PR allows the elements used to produce the alignments segments to be configured by the way of the begin=, hline=, sep= and end= parameters. This will help support of other formats in the future.

And finally, this PR tweak the github format to introduce a space separation between the pipes separating the cells of the table. This is to conform to the GitHub Flavored Markdown Spec.

This closes #53 and also supersedes #260.

@kdeldycke
Copy link
Contributor Author

All tests are passing and successful. This PR is ready to be merged upstream.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

left, right, and center-aligned Markdown tables
1 participant