16 lines
594 B
TypeScript
Executable File
16 lines
594 B
TypeScript
Executable File
/**
|
|
* Create an extension for `micromark` to support math when serializing to
|
|
* HTML.
|
|
*
|
|
* > 👉 **Note**: this uses KaTeX to render math.
|
|
*
|
|
* @param {Options | null | undefined} [options={}]
|
|
* Configuration (default: `{}`).
|
|
* @returns {HtmlExtension}
|
|
* Extension for `micromark` that can be passed in `htmlExtensions`, to
|
|
* support math when serializing to HTML.
|
|
*/
|
|
export function mathHtml(options?: Options | null | undefined): HtmlExtension;
|
|
import type { HtmlOptions as Options } from 'micromark-extension-math';
|
|
import type { HtmlExtension } from 'micromark-util-types';
|