kjelsrud.dev/node_modules/micromark-extension-mdx-md/index.js
2023-07-19 21:31:30 +02:00

16 lines
412 B
JavaScript

/**
* @typedef {import('micromark-util-types').Extension} Extension
*/
// To do: next major: expose functions.
/**
* Extension for `micromark` that can be passed in `extensions` to disable
* some CommonMark syntax (code (indented), autolinks, and HTML (flow and
* text)) for MDX.
*
* @type {Extension}
*/
export const mdxMd = {
disable: {null: ['autolink', 'codeIndented', 'htmlFlow', 'htmlText']}
}