| 12345678910111213141516171819202122232425262728293031323334353637383940 |
- import { nodes as defaultNodes } from '@markdoc/markdoc'
- import { Fence } from '@/components/Fence'
- const nodes = {
- document: {
- render: undefined,
- },
- table: {
- ...defaultNodes.table,
- render: (props) => {
- const Table = defaultNodes.table.render
- return (
- <div className="my-6 overflow-x-auto">
- <Table {...props} />
- </div>
- )
- },
- },
- th: {
- ...defaultNodes.th,
- attributes: {
- ...defaultNodes.th.attributes,
- scope: {
- type: String,
- default: 'col',
- },
- },
- },
- fence: {
- render: Fence,
- attributes: {
- language: {
- type: String,
- },
- },
- },
- }
- export default nodes
|