diff --git a/src/shared/utils.ts b/src/shared/utils.ts index 6019e4d6..6f6e61c7 100644 --- a/src/shared/utils.ts +++ b/src/shared/utils.ts @@ -589,7 +589,7 @@ function setupMarkdown() { defs: emojiDefs, }) .disable("image"); - var defaultRenderer = md.renderer.rules.image; + const defaultRenderer = md.renderer.rules.image; md.renderer.rules.image = function ( tokens: Token[], idx: number, @@ -608,6 +608,9 @@ function setupMarkdown() { const alt_text = item.content; return ``; }; + md.renderer.rules.table_open = function () { + return '