-
Notifications
You must be signed in to change notification settings - Fork 132
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
Respect ATTR_HTML above tables #93
Labels
Comments
Related: gohugoio/hugo#1585 (comment) |
Propose a |
kaushalmodi
added a commit
that referenced
this issue
Nov 10, 2017
This commit changes the TOC style quite a bit from the earlier version. Read the below mini-blog-in-commit for more info. - Add new function org-hugo--get-headline-number - org-hugo-heading - Use above. - org-hugo--build-toc - Generate unordered list instead of ordered - Update/add tests! @punchagan: You are most likely one of the few affected by the backward incompatible change in this commit. To get sort of the old style of numbered headings in TOC (while unnumbered headings in post body), set `num' to `onlytoc`. Let me know how it works. === mini blog === Earlier, the TOC was exported as ordered list in Markdown. That imposed a limitation that allowed exporting only the last number from a section number. So instead of: 1. Section 1 1.1 Section 1.1 1.2 Section 1.2 It would export as: 1. Section 1 1. Section 1.1 2. Section 1.2 Now the TOC is generated as an *unordered* list in Markdown. - 1. Section 1 - 1.1 Section 1.1 - 1.2 Section 1.2 That would cause both bullets and numbers to show in HTML, so I am using a nifty little trick I discovered in #93 to hide those bullets **if the section numbers are present**. In addition, I also wrap the section numbers in "section-num" class so that user can choose to format them however they like using CSS (May be even hide them). === Fixes #76
Holy grail of HTML5 tables: https://css-tricks.com/complete-guide-table-element/
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
First of all, as we are exporting the tables as Markdown tables, it's not natively supported by Hugo/Blackfriday.
The limitation is that we cannot wrap Markdown text with HTML tags (blackfriday#404) .. but below workaround seems to work with Blackfriday!
That will enable customizing
width
,border
, and other CSS table attributes using#+ATTR_HTML
!Reference - For the workaround
The text was updated successfully, but these errors were encountered: