Files
nostr-how/markdoc/nodes.js
Jeff Gardner ad76d7393e Initial commit
2023-01-10 16:26:46 +01:00

29 lines
461 B
JavaScript

import { Fence } from '@/components/Fence'
import { nodes as defaultNodes } from '@markdoc/markdoc'
const nodes = {
document: {
render: undefined,
},
th: {
...defaultNodes.th,
attributes: {
...defaultNodes.th.attributes,
scope: {
type: String,
default: 'col',
},
},
},
fence: {
render: Fence,
attributes: {
language: {
type: String,
},
},
},
}
export default nodes