Skip to content

KaTeX interpretation in code blocks #8676

@IceBear2k

Description

@IceBear2k

Description:

KaTeX syntax (used intentionally or unintentionally) in code blocks is interpreted and results in weird strings.

Server Setup Information:

  • Version of Rocket.Chat Server: 0.59.1
  • Operating System: Ubuntu 16.04 - x86_64
  • Deployment Method(snap/docker/tar/etc): docker
  • Number of Running Instances: 3
  • DB Replicaset Oplog: Enabled
  • Node Version: v4.8.4

Steps to Reproduce:

  1. Send code block including KaTeX syntax (single or multi line):
    grep -A 2 "\[${TO_PROFILE}\]" (add `)
    image
  2. Rendering is broken in single or multi line cases:
    image

Expected behavior:

Don't (try) to interpret/render KaTeX in code blocks.

Actual behavior:

KaTeX is interpreted/rendered in code blocks (incorrectly).

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