kramed icon indicating copy to clipboard operation
kramed copied to clipboard

Add table captioning to table syntax

Open aepstein opened this issue 10 years ago • 0 comments

In books, tables are generally accompanied by a caption. HTML specification is to have a caption tag right above the . Right now, to add a caption the whole table needs to be in HTML. This patch adds a markdown convention as follows:

'''
Table 1<br/>
Table shows some data
'''
Heading 1 | Heading 2
----------|-----------
Data 1    |Data 2

which renders to:

<table>
<caption>Table 1<br/>Table shows some data</caption>
<thead>....

Patch includes modified table tests to capture this functionality.

aepstein avatar Feb 05 '15 20:02 aepstein