markdoc.config.ts 551 B

1234567891011121314151617181920212223242526
  1. import { defineMarkdocConfig, component } from '@astrojs/markdoc/config';
  2. export default defineMarkdocConfig({
  3. nodes: {
  4. fence: {
  5. render: component('./src/components/Code.astro'),
  6. attributes: {
  7. language: { type: String },
  8. content: { type: String },
  9. },
  10. },
  11. },
  12. tags: {
  13. 'marquee-element': {
  14. render: component('./src/components/CustomMarquee.astro'),
  15. attributes: {
  16. direction: {
  17. type: String,
  18. default: 'left',
  19. matches: ['left', 'right', 'up', 'down'],
  20. errorLevel: 'critical',
  21. },
  22. },
  23. },
  24. },
  25. })