# comark/math/katex-missing

The `output` option's `"html"` and `"htmlAndMathml"` typeset with KaTeX, which comark-mathml doesn't install. Without it, formulas are typeset as MathML, the default, and this issue says so. Install `katex` and put `katex/dist/katex.css` on the page, or drop the `output` option.

```sh
pnpm add katex
```

```ts
import "katex/dist/katex.css";
import math from "comark-mathml";

const plugins = [math({ output: "html" })];
```

<!-- vitehub-docs:section-links -->
## In this section

- [Doctor](https://comark-ui.onmax.me/raw/doctor.md)
- [annotate](https://comark-ui.onmax.me/raw/doctor/annotate/annotation-outside-screenshot.md)
- [badge](https://comark-ui.onmax.me/raw/doctor/badge/empty-badge.md)
- [Core](https://comark-ui.onmax.me/raw/doctor/blocked-url.md)
- [cards](https://comark-ui.onmax.me/raw/doctor/cards/empty-columns.md)
- [carousel](https://comark-ui.onmax.me/raw/doctor/carousel/content-outside-slide.md)
- [cast](https://comark-ui.onmax.me/raw/doctor/cast/file-not-found.md)
- [charts](https://comark-ui.onmax.me/raw/doctor/charts/content-dropped.md)
- [chips](https://comark-ui.onmax.me/raw/doctor/chips/invalid-avatar.md)
- [code-notes](https://comark-ui.onmax.me/raw/doctor/code-notes/marker-without-note.md)
- [code](https://comark-ui.onmax.me/raw/doctor/code/invalid-range.md)
- [colors](https://comark-ui.onmax.me/raw/doctor/colors/content-dropped.md)
- [comments](https://comark-ui.onmax.me/raw/doctor/comments/duplicate-id.md)
- [critic](https://comark-ui.onmax.me/raw/doctor/critic/invalid-mode.md)
- [details](https://comark-ui.onmax.me/raw/doctor/details/content-outside-item.md)
- [diagrams](https://comark-ui.onmax.me/raw/doctor/diagrams/authored-svg.md)
- [diff](https://comark-ui.onmax.me/raw/doctor/diff/block-count.md)
- [embed](https://comark-ui.onmax.me/raw/doctor/embed/card-without-title.md)
- [fields](https://comark-ui.onmax.me/raw/doctor/fields/description-ignored.md)
- [file-tree](https://comark-ui.onmax.me/raw/doctor/file-tree/content-dropped.md)
- [footnotes](https://comark-ui.onmax.me/raw/doctor/footnotes/duplicate-definition.md)
- [github](https://comark-ui.onmax.me/raw/doctor/github/invalid-repo.md)
- [icon](https://comark-ui.onmax.me/raw/doctor/icon/download-failed.md)
- [include](https://comark-ui.onmax.me/raw/doctor/include/file-not-found.md)
- [magic-move](https://comark-ui.onmax.me/raw/doctor/magic-move/content-in-magic-move.md)
- math
  - [authored-html](https://comark-ui.onmax.me/raw/doctor/math/authored-html.md)
  - [invalid-tex](https://comark-ui.onmax.me/raw/doctor/math/invalid-tex.md)
  - [katex-missing](https://comark-ui.onmax.me/raw/doctor/math/katex-missing.md) (this page)
- [media](https://comark-ui.onmax.me/raw/doctor/media/autoplay-without-muted.md)
- [mermaid](https://comark-ui.onmax.me/raw/doctor/mermaid/source-too-long.md)
- [metrics](https://comark-ui.onmax.me/raw/doctor/metrics/column-count.md)
- [outline](https://comark-ui.onmax.me/raw/doctor/outline/content-dropped.md)
- [properties](https://comark-ui.onmax.me/raw/doctor/properties/content-dropped.md)
- [qr](https://comark-ui.onmax.me/raw/doctor/qr/content-dropped.md)
- [quiz](https://comark-ui.onmax.me/raw/doctor/quiz/correct-in-poll.md)
- [shiki](https://comark-ui.onmax.me/raw/doctor/shiki/source-too-long.md)
- [sources](https://comark-ui.onmax.me/raw/doctor/sources/content-dropped.md)
- [steps](https://comark-ui.onmax.me/raw/doctor/steps/content-before-steps.md)
- [table](https://comark-ui.onmax.me/raw/doctor/table/base-outside-root.md)
- [tabs](https://comark-ui.onmax.me/raw/doctor/tabs/content-in-code-group.md)
- [tests](https://comark-ui.onmax.me/raw/doctor/tests/content-dropped.md)
- [time](https://comark-ui.onmax.me/raw/doctor/time/invalid-date.md)
- [xref](https://comark-ui.onmax.me/raw/doctor/xref/duplicate-label.md)

Next: [autoplay-without-muted](https://comark-ui.onmax.me/raw/doctor/media/autoplay-without-muted.md)

All pages: [llms.txt](https://comark-ui.onmax.me/llms.txt)
