Skip to content

KaTeX parse error inside code block #13538

@iegik

Description

@iegik

My Setup

  • Operating System: MacOS
  • App Version: 2.14.7
  • Installation type: dmg
  • I have tested with the latest version
  • I can simulate the issue easily

Description

insert following code to the conversation:

var OPEN_TAG = /\[%/;

Current Behavior

Message shows as code block with following error inside:

var OPEN_TAG = /
KaTeX parse error: Expected 'EOF', got '%' at position 22: …r CLOSE_TAG = /%̲
/;

Expected Behavior

Message shows as code block without any KaTeX error inside:

var OPEN_TAG = /\[%/;

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions