Add table support for visual markdown editor

GitOrigin-RevId: b36f575d40b19fdf32622c9923cecd5b47658d5d
This commit is contained in:
Domagoj Kriskovic
2026-06-18 08:06:26 +00:00
committed by Copybot
parent 95e0a88bbb
commit 62c2523aec
@@ -1,7 +1,7 @@
import { markdown as markdownLanguage } from '@codemirror/lang-markdown'
import { shortcuts } from './shortcuts'
import { languages } from '../index'
import { Strikethrough } from '@lezer/markdown'
import { Strikethrough, Table } from '@lezer/markdown'
import {
HighlightStyle,
LanguageSupport,
@@ -12,7 +12,7 @@ import { tags } from '@lezer/highlight'
export const markdown = () => {
const { language, support } = markdownLanguage({
codeLanguages: languages,
extensions: [Strikethrough],
extensions: [Strikethrough, Table],
})
return new LanguageSupport(language, [