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

Fixing the Markdown Extra table by wrapping it into a table-wrapper div #39

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion _posts/2015-02-19-tufte-style-jekyll-blog.md
Original file line number Diff line number Diff line change
Expand Up @@ -257,7 +257,7 @@ As an example of alternative table styles, academic publications written in <spa
{% newthought 'I like this style of table,' %} so I have made it the default for unstyled tables. This allows use of the [*Markdown Extra*](https://michelf.ca/projects/php-markdown/extra/) features built into the [*Kramdown*](http://kramdown.gettalong.org/parser/kramdown.html) parser. Here is a table created using the Markdown Extra table syntax to make a nice table which has the side benefit of being human readable in the raw markdown file:

{% marginnote 'tableID-3' 'Table 3: a table created with *Markdown Extra* markup using default table styling' %}

<div class="table-wrapper" markdown="block">
| |mpg | cyl | disp | hp | drat | wt |
|:----------------|----:|-----:|-------:|-------:|-------:|----:|
|Mazda RX4 |21 |6 |160 |110 |3.90 |2.62 |
Expand All @@ -267,6 +267,7 @@ As an example of alternative table styles, academic publications written in <spa
|Hornet Sportabout|18.7 |8 |360 |175 |3.15 |3.44 |
|Valiant |18.1 |6 |160 |105 |2.76 |3.46 |

</div>

Using the following markup(down):

Expand Down