-
-
Notifications
You must be signed in to change notification settings - Fork 16.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 tables don't get reveal
class; can't assign with .element
comment.
#894
Comments
PS: Attempting to put a div around the table also results in a markdown parser fail: <section data-markdown>
<script type="text/template">
## Tables
<div class="reveal">
| Tables | Are | Cool |
| ------------- |:-------------:| -----:|
| col 3 is | right-aligned | $1600 |
| col 2 is | centered | $12 |
| zebra stripes | are neat | $1 |
</div>
</script>
</section> gives: |
Hey, tables shouldn't have a The most recent table styles are pasted below. You can either inject those into your reveal.css or start using the dev branch. .reveal table {
margin: auto;
border-collapse: collapse;
border-spacing: 0;
}
.reveal table th {
font-weight: bold;
}
.reveal table th,
.reveal table td {
text-align: left;
padding: 0.2em 0.5em 0.2em 0.5em;
border-bottom: 1px solid;
} |
Fantastic! Thanks for pulling out latest CSS from the |
And what about the markdown alignment colons? | ------------- |:-------------:| -----:| They seem to be ignored which results in columns not being aligned (left, right, center). |
Is there a solution to placing a |
@swill: Please don't cross-post without linking. 😉 |
I also want to know how to set the .element in the external markdown file. |
Synopsys
Seem to be stuck in a Catch-22 trying to get markdown tables to get the reveal.js theme styles applied to them.
Details
A simple markdown table appears to be parsed and rendered correctly, but doesn't have the
reveal
class assigned to it. This fragment:renders like this:
But (using the default theme and regular HTML), the result should be like this:
Here's the generated
marked
-generated HTML looks like in the Chrome element inspector:Attempting to use the element attribute syntax doesn't appear to work either:
gives you this:
Putting it at the end of the header allows the Markdown to be parsed correctly, but the style class gets assigned to the header row instead:
comes out like this:
The text was updated successfully, but these errors were encountered: