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
Vertical headers in table should render as th element in HTML backend #738
Comments
@DavidGamba Great suggestion. The choice to use a |
Here's the configuration needed in compact/asciidoc.conf:
Look for |
If you'd like to send a pull request, I'll merge it in. To modify Asciidoctor's output, look in the file lib/asciidoctor/backends/html5.rb. You'll want to add a condition to where it makes the
then you can remove the |
If you could update the test as well, that would be great! Look for:
|
Will give it a try... :) |
👍 |
The only thing I didn't test were the changes to the compatibility template since I really didn't know how to. |
resolves #738 vertical table headers use th element instead of header class
Thanks David! FYI, to test the compatibility template, just create an AsciiDoc file in that directory and run |
Btw, I'm working on getting the Cucumber-based test suite setup so that we can run the same tests against Asciidoctor & AsciiDoc. That way, the compatibility file will be tested by default. |
Thanks Dan, It was fun to help out a bit, I love using Asciidoctor. |
The
h
incols="1h,..."
modifier for the column indicates a vertical header, however, it adds theclass="header"
(in the wrong place) instead of actually modifying the html with the<th>
element.Initially the
class="header"
needs to be placed in the right place and eventually it should be replaced by the<th>
element.Test data
HTML rendered
Focus on the line:
<td class="tableblock halign-left valign-top"><p class="tableblock header">Header 1</p></td>
Initially it should be:
<td class="tableblock halign-left valign-top header"><p class="tableblock">Header 1</p></td>
But ideally it should be:
<th class="tableblock halign-left valign-top"><p class="tableblock">Header 1</p></th>
I am using
Asciidoctor 0.1.4 [http://asciidoctor.org]
The text was updated successfully, but these errors were encountered: