diff --git a/src/markdown.ts b/src/markdown.ts index 28bc8a2..7d91821 100644 --- a/src/markdown.ts +++ b/src/markdown.ts @@ -56,7 +56,13 @@ export function mkLang(parser: MarkdownParser) { /// Language support for strict CommonMark. export const commonmarkLanguage = mkLang(commonmark) -const extended = commonmark.configure([GFM, Subscript, Superscript, Emoji]) +const extended = commonmark.configure([GFM, Subscript, Superscript, Emoji, { + props: [ + foldNodeProp.add({ + Table: (tree, state) => ({from: state.doc.lineAt(tree.from).to, to: tree.to}) + }) + ] +}]) /// Language support for [GFM](https://github.github.com/gfm/) plus /// subscript, superscript, and emoji syntax.