markdoc.config.ts 398 B

12345678910111213141516171819
  1. import { defineMarkdocConfig, component } from '@astrojs/markdoc/config';
  2. export default defineMarkdocConfig({
  3. tags: {
  4. aside: {
  5. render: component('./src/components/Aside.astro'),
  6. attributes: {
  7. type: { type: String },
  8. title: { type: String },
  9. },
  10. },
  11. mark: {
  12. render: component('./src/components/Mark.astro'),
  13. attributes: {
  14. color: { type: String },
  15. },
  16. },
  17. },
  18. })