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

Captions for Tables #4

Open
flywire opened this issue Jun 29, 2020 · 2 comments
Open

Captions for Tables #4

flywire opened this issue Jun 29, 2020 · 2 comments

Comments

@flywire
Copy link
Owner

flywire commented Jun 29, 2020

The caption Tag is used to specify the caption of a table. This tag will be inserted just after the <table> tag.

Markdown does not define a caption for tables. This could be done by convention, alternatively using an Officially Supported Extension, as shown below, before rendering.

Table Example with heading, two columns and a row

| Syntax      | Description |
| ----------- | ----------- |
| Header      | Title       |
| Paragraph   | Text        |
<p>Table Example with heading, two columns and a row</p>
<table>
<thead>
<tr>
<th>Syntax</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td>Header</td>
<td>Title</td>
</tr>
<tr>
<td>Paragraph</td>
<td>Text</td>
</tr>
</tbody>
</table>

Output

Table Example with heading, two columns and a row

Syntax Description
Header Title
Paragraph Text
@flywire
Copy link
Owner Author

flywire commented Jul 16, 2020

Sample Table block (to be styled with css):

<table id="_table-1">
<caption><span>Table&nbsp;1:</span> Example with heading, two columns and a row</caption>
<thead>
<tr>
<th>Syntax</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td>Header</td>
<td>Title</td>
</tr>
<tr>
<td>Paragraph</td>
<td>Text</td>
</tr>
</tbody>
</table>

@hendrikp
Copy link

hendrikp commented Mar 5, 2023

This was solved through the major-refactor PR and can be closed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants