-
-
Notifications
You must be signed in to change notification settings - Fork 7.6k
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
Markdown render hook for tables doesn't recognize unset column alignment #12886
Closed
Tracked by
#5153
Comments
4 tasks
Goldmark handles this as expected (see playground example). We should set the default to an empty string. hugo/markup/goldmark/tables/tables.go Lines 123 to 133 in d0dca65
|
Agree. |
jmooring
added a commit
to jmooring/hugo
that referenced
this issue
Sep 29, 2024
Change the default table cell alignment from "left" to an empty string. Closes gohugoio#12886
This was referenced Sep 29, 2024
This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
As of v0.134.0 (via #12809), Markdown render hooks for tables are supported.
While there are four possible column alignment syntaxes (see the table below), only three are reported: the
---
(unset) syntax isn't recognized as distinct from left alignment:---
.When rendered, a cell from an unset column should have no
text-align
style set, but unfortunately, the following hook override fragment won't work:References:
-----
:----
----:
:---:
The text was updated successfully, but these errors were encountered: