fix: fix ref links inside table (#2471)

This commit is contained in:
Tony Brix 2022-05-17 08:28:47 -05:00 committed by GitHub
parent 107f42fdf8
commit 81daa2ae47
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 19 additions and 2 deletions

View File

@ -405,7 +405,7 @@ export class Tokenizer {
l = item.header.length;
for (j = 0; j < l; j++) {
item.header[j].tokens = [];
this.lexer.inlineTokens(item.header[j].text, item.header[j].tokens);
this.lexer.inline(item.header[j].text, item.header[j].tokens);
}
// cell child tokens
@ -414,7 +414,7 @@ export class Tokenizer {
row = item.rows[j];
for (k = 0; k < row.length; k++) {
row[k].tokens = [];
this.lexer.inlineTokens(row[k].text, row[k].tokens);
this.lexer.inline(row[k].text, row[k].tokens);
}
}

View File

@ -0,0 +1,12 @@
<table>
<thead>
<tr>
<th>a</th>
</tr>
</thead>
<tbody>
<tr>
<td><a href="https://www.google.com">d</a></td>
</tr>
</tbody>
</table>

View File

@ -0,0 +1,5 @@
| a |
| ------ |
| [d][c] |
[c]: https://www.google.com