Skip to content

KaTeX Errors Displayed When Generating LaTeX Documents via AI Assistant #8440

@Blaec-CoCalc

Description

@Blaec-CoCalc

Describe the bug
When generating a LaTeX document using the "help me write this" option from the + New Page feature with the AI assistant, KaTeX errors are displayed. While the resulting document usually works fine, seeing these errors is unhelpful and discourages saving the document.

To Reproduce
Steps to reproduce the behavior:

  1. Go to "+ New Page" in CoCalc.
  2. Select the "help me write this" option using the AI assistant to generate LaTeX content.
  3. Observe that KaTeX errors are shown during or after generation.

Expected behavior
Errors should not be shown to the user if the output document is mostly valid. Error messages should be suppressed or only shown when the output is truly unusable.

Additional context
The presence of error messages creates a poor user experience and may discourage users from using or saving the generated documents, even though the output often renders correctly after saving.

Screenshots

Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions