Given source text includes a valid Markdown table
When calling parse with source text
Then rendered table includes <tbody> in cell 1
And has extra row at bottom
Environment
Node.js v20.12.0
marked v13.0.3
marked-terminal v7.4.0
Example
Code:
import { Marked } from 'marked';
import { markedTerminal } from 'marked-terminal';
const body = `
| Character Name | Hometown | Description |
|----------------|-----------------|-------------------------------------------|
| Aria Windwalker| Elmridge | A swift and agile archer from the woods |
| Thorne Ironfist| Stonekeep | A strong warrior from a mountain fortress |
| Lyra Moonshade | Sunhaven | A cunning sorceress from a desert city |
`;
// @ts-ignore
const m = new Marked(markedTerminal());
console.log(m.parse(body));
Problem
Description
Environment
Example
Code:
Console:
Possible Cause
https://github.com/mikaelbr/marked-terminal/blob/e8f60dd8a95291f2e58d6b1e43a0848719a53562/index.js#L231
Removing this line seemed to resolve the issues.