html.d.ts 594 B

123456789101112131415
  1. /**
  2. * Create an extension for `micromark` to support math when serializing to
  3. * HTML.
  4. *
  5. * > 👉 **Note**: this uses KaTeX to render math.
  6. *
  7. * @param {Options | null | undefined} [options={}]
  8. * Configuration (default: `{}`).
  9. * @returns {HtmlExtension}
  10. * Extension for `micromark` that can be passed in `htmlExtensions`, to
  11. * support math when serializing to HTML.
  12. */
  13. export function mathHtml(options?: Options | null | undefined): HtmlExtension;
  14. import type { HtmlOptions as Options } from 'micromark-extension-math';
  15. import type { HtmlExtension } from 'micromark-util-types';