mirror of
https://github.com/Snigdha-OS/documentation.git
synced 2025-09-08 19:34:56 +02:00
18 lines
480 B
JavaScript
18 lines
480 B
JavaScript
/**
|
|
* @typedef {import('micromark-util-types').Extension} Extension
|
|
*/
|
|
|
|
/**
|
|
* Create an extension for `micromark` to disable some CommonMark syntax (code
|
|
* (indented), autolinks, and HTML (flow and text)) for MDX.
|
|
*
|
|
* @returns {Extension}
|
|
* Extension for `micromark` that can be passed in `extensions` to disable
|
|
* some CommonMark syntax for MDX.
|
|
*/
|
|
export function mdxMd() {
|
|
return {
|
|
disable: {null: ['autolink', 'codeIndented', 'htmlFlow', 'htmlText']}
|
|
}
|
|
}
|