You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+235-1Lines changed: 235 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -30,10 +30,244 @@ To load this extension locally, clone the repo to your machine. Visit the Chrome
30
30
<!-- USAGE EXAMPLES -->
31
31
## Usage
32
32
33
-
Navigate to a page that has an HTML table element (for example, [this Wikipedia page](https://en.wikipedia.org/wiki/Scholastic_accolades)). Right click on the table you would like to export and inspect it in your DevTools. **Make sure that the `<table>` element itself is selected!**
33
+
Navigate to a page that has an HTML table element. Right click on the table you would like to export and inspect it in your DevTools. **Make sure that the `<table>` element itself is selected!**
34
34
35
35
Open the Table to Markdown panel of the DevTools (you may need to click the dropdown to see it). Click the `Convert to Markdown` button, and your markdown table will appear in the box.
36
36
37
+
### HTML Table export format
38
+
39
+
To see an example of how a table will be rendered, let's look at the following table taken from the [Scholastic Accolades Wikipedia page](https://en.wikipedia.org/wiki/Scholastic_accolades#Doctors_in_law).
| Doctor Aristotelis Anima | Johannes Dondus | 1380 |
206
+
| Doctor a Doctoribus | Antonius Franciscus | 1528 |
207
+
| Doctor Fons Canonum | Johannes Andrea | 1348 |
208
+
| Doctor Fons Juris Utriusque | Henry of Susa (Ostia) | 1267-81 |
209
+
| Doctor Lucerna Juris | Baldus de Ubaldis | 1400 |
210
+
| Doctor Lucerna Juris Pontificii | Nicholas Tedeschi (O.S.B.) | 1445 |
211
+
| Doctor Lumen Juris | Pope Clement IV | 1268 |
212
+
| Doctor Lumen Legum | Irnerius | 1125 (after) |
213
+
| Doctor Memoriosissimus | Ludovicus Pontanus | 1439 |
214
+
| Doctor Monarcha Juris | Bartholomew of Saliceto | 1412 |
215
+
| Doctor Os Aureum | Bulgarus | 1166 |
216
+
| Doctor Pater Decretalium | Gregory IX | 1241 |
217
+
| Doctor Pater et Organum Veritatis | Pope Innocent IV | 1254 |
218
+
| Doctor Pater Juris | Pope Innocent III | 1216 |
219
+
| Doctor Pater Peritorum | Pierre de Belleperche | 1307 |
220
+
| Doctor Planus ac Perspicuus | Walter Burleigh | 1337 |
221
+
| Doctor Princeps Subtilitatum | Francesco d'Accolti | 1486 |
222
+
| Doctor Speculator | William Durandus | 1296 |
223
+
| Doctor Speculum Juris | Bartholus of Sassoferrato | 1359 |
224
+
| Doctor Subtilis | Benedict Raymond | 1440 |
225
+
| Doctor Subtilis | Filippo Corneo | 1462 |
226
+
| Doctor Verus | Thomas Doctius, Siena | 1441 |
227
+
```
228
+
229
+
### HTML Tables without headers
230
+
Most Markdown table parsers do not support header-less tables. To compensate for this, this extension throws in a blank header row. For example, take the following table (taken from the [NBA Most Valuable Player Award Wikipedia page](https://en.wikipedia.org/wiki/NBA_Most_Valuable_Player_Award)).
<td>Inducted into the <a href="/wiki/Naismith_Memorial_Basketball_Hall_of_Fame" title="Naismith Memorial Basketball Hall of Fame">Naismith Memorial Basketball Hall of Fame</a></td>
0 commit comments