Dynamic Content

A remark plugin that generates content from files

Add it as a remark plugin.

import { remarkDynamicContent } from 'fumadocs-core/mdx-plugins';

const config = {
    remarkPlugins: [
      [remarkDynamicContent, { ... }]
    ],
}

Syntax

This will copy the content from a specific file, it only can used in code blocks & text.

|reference: + path + |

Example: |reference:./path/to/your/file.ts|

Options

PropTypeDefault
trim
boolean
true
relative
boolean
false
visit
string[]
['text','code']

Last updated on

On this page