summaryrefslogtreecommitdiff
path: root/packages/integrations/markdoc/README.md
diff options
context:
space:
mode:
Diffstat (limited to 'packages/integrations/markdoc/README.md')
-rw-r--r--packages/integrations/markdoc/README.md36
1 files changed, 18 insertions, 18 deletions
diff --git a/packages/integrations/markdoc/README.md b/packages/integrations/markdoc/README.md
index 58efd0735..2cc8f32e5 100644
--- a/packages/integrations/markdoc/README.md
+++ b/packages/integrations/markdoc/README.md
@@ -113,21 +113,21 @@ import markdoc from '@astrojs/markdoc';
// https://astro.build/config
export default defineConfig({
- integrations: [
- markdoc({
- tags: {
- aside: {
- render: 'Aside',
+ integrations: [
+ markdoc({
+ tags: {
+ aside: {
+ render: 'Aside',
attributes: {
// Component props as attribute definitions
// See Markdoc's documentation on defining attributes
// https://markdoc.dev/docs/attributes#defining-attributes
type: { type: String },
}
- },
- },
- }),
- ],
+ },
+ },
+ }),
+ ],
});
```
@@ -159,11 +159,11 @@ import markdoc from '@astrojs/markdoc';
// https://astro.build/config
export default defineConfig({
- integrations: [
- markdoc({
- nodes: {
- heading: {
- render: 'Heading',
+ integrations: [
+ markdoc({
+ nodes: {
+ heading: {
+ render: 'Heading',
// Markdoc requires type defs for each attribute.
// These should mirror the `Props` type of the component
// you are rendering.
@@ -172,10 +172,10 @@ export default defineConfig({
attributes: {
level: { type: String },
}
- },
- },
- }),
- ],
+ },
+ },
+ }),
+ ],
});
```