nodes.js 462 B

1234567891011121314151617181920212223242526272829
  1. import { nodes as defaultNodes } from '@markdoc/markdoc'
  2. import { Fence } from '@/components/Fence'
  3. const nodes = {
  4. document: {
  5. render: undefined,
  6. },
  7. th: {
  8. ...defaultNodes.th,
  9. attributes: {
  10. ...defaultNodes.th.attributes,
  11. scope: {
  12. type: String,
  13. default: 'col',
  14. },
  15. },
  16. },
  17. fence: {
  18. render: Fence,
  19. attributes: {
  20. language: {
  21. type: String,
  22. },
  23. },
  24. },
  25. }
  26. export default nodes