KaTeX / KaTeX/KaTeX

Add `errorClass` or similar to specify HTML class to be used for erroneous segments

Open
#1,887 0 comments 2 reactions 0 assignees View on GitHub
enhancement
Dominant language
TypeScript
Stars
20.4k
Forks
1.3k
Avg merge
14h 37m
Merged PRs (30d)
7

Description

At the moment, there is very limited control over formatting for invalid LaTeX. We can pass `errorColor` (with `throwOnError: false`), or do manual error handling. It would be useful to have something like `errorClass` to add a custom class for formatting to any erroneous commands, etc. in the LaTeX, so we can control things like font, size, etc.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.