@mdx-js/language-service
Version:
MDX support for Volar
21 lines • 1.07 kB
TypeScript
/**
* Create a [Volar](https://volarjs.dev) language plugin to support MDX.
*
* @param {PluggableList} [remarkPlugins]
* A list of remark syntax plugins. Only syntax plugins are supported.
* Transformers are unused.
* @param {VirtualCodePlugin[]} [virtualCodePlugins]
* @param {boolean} checkMdx
* If true, check MDX files strictly.
* @param {string} jsxImportSource
* The JSX import source to use in the embedded JavaScript file.
* @returns {LanguagePlugin<string | URI, VirtualMdxCode>}
* A Volar language plugin to support MDX.
*/
export function createMdxLanguagePlugin(remarkPlugins?: PluggableList, virtualCodePlugins?: VirtualCodePlugin[], checkMdx?: boolean, jsxImportSource?: string): LanguagePlugin<string | URI, VirtualMdxCode>;
import type { PluggableList } from 'unified';
import type { VirtualCodePlugin } from './plugins/plugin.js';
import type { URI } from 'vscode-uri';
import { VirtualMdxCode } from './virtual-code.js';
import type { LanguagePlugin } from '@volar/language-service';
//# sourceMappingURL=language-plugin.d.ts.map