Closed LightAPIs closed 1 year ago
The rendered table is incorrect when the "grave accent" symbol is included in the inline code.
| Code | Des | | --- | --- | | `` grave(`) `` | des | | `` grave(\`) `` | des |
// test.cjs const markdown = require('markdown-it'); const multimd = require('markdown-it-multimd-table'); const md = markdown().use(multimd); const exampleTable = '| Code | Des |\n' + '| --- | --- |\n' + '| `` grave(`) `` | des |\n' + '| `` grave(\\`) `` | des |'; console.log(md.render(exampleTable));
<table> <thead> <tr> <th>Code</th> <th>Des</th> </tr> </thead> <tbody> <tr> <td><code>grave(`)</code> | des |</td> </tr> <tr> <td><code>grave(\`)</code></td> <td>des</td> </tr> </tbody> </table>
The rendered table is incorrect when the "grave accent" symbol is included in the inline code.
Example
Markdown table content
JavaScript code
Output
Expected rendering result