aboutsummaryrefslogtreecommitdiff
path: root/packages/integrations/markdoc/test/fixtures/render-with-config/markdoc.config.ts
blob: c43ee93a38f310575f27283bbe8c2f8d75a37957 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
import { defineMarkdocConfig } from '@astrojs/markdoc/config';

export default defineMarkdocConfig({
	variables: {
		countries: ['ES', 'JP'],
	},
	functions: {
		includes: {
			transform(parameters) {
				const [array, value] = Object.values(parameters);
				return Array.isArray(array) ? array.includes(value) : false;
			},
		},
	},
})