Home / File/ markdoc.config.ts — astro Source File

markdoc.config.ts — astro Source File

Architecture documentation for markdoc.config.ts, a typescript file in the astro codebase. 1 imports, 0 dependents.

File typescript CoreAstro RenderingEngine 1 imports 1 functions

Entity Profile

Dependency Diagram

graph LR
  14657d82_5d2e_b614_b00a_f9f7f434b84e["markdoc.config.ts"]
  50633ce9_0283_cb80_aab9_57c4c0ac89fb["config"]
  14657d82_5d2e_b614_b00a_f9f7f434b84e --> 50633ce9_0283_cb80_aab9_57c4c0ac89fb
  style 14657d82_5d2e_b614_b00a_f9f7f434b84e fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

import { component, defineMarkdocConfig } from '@astrojs/markdoc/config';

export default defineMarkdocConfig({
	extends: [preset()],
});

function preset() {
	return {
		nodes: {
			fence: {
				render: component('./src/components/Code.astro'),
				attributes: {
					language: { type: String },
					content: { type: String },
				},
			},
		},
		tags: {
			'marquee-element': {
				render: component('./src/components/CustomMarquee.astro'),
				attributes: {
					direction: {
						type: String,
						default: 'left',
						matches: ['left', 'right', 'up', 'down'],
					},
				},
			},
		},
	}
}

Domain

Subdomains

Functions

Dependencies

  • config

Frequently Asked Questions

What does markdoc.config.ts do?
markdoc.config.ts is a source file in the astro codebase, written in typescript. It belongs to the CoreAstro domain, RenderingEngine subdomain.
What functions are defined in markdoc.config.ts?
markdoc.config.ts defines 1 function(s): preset.
What does markdoc.config.ts depend on?
markdoc.config.ts imports 1 module(s): config.
Where is markdoc.config.ts in the architecture?
markdoc.config.ts is located at packages/integrations/markdoc/test/fixtures/render-with-extends-components/markdoc.config.ts (domain: CoreAstro, subdomain: RenderingEngine, directory: packages/integrations/markdoc/test/fixtures/render-with-extends-components).

Analyze Your Own Codebase

Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.

Try Supermodel Free