element-hq / element-web

A glossy Matrix collaboration client for the web.
https://element.io
GNU Affero General Public License v3.0
11.14k stars 1.98k forks source link

Text is not highlighted in code blocks when using a custom theme #20020

Open Oha-you opened 2 years ago

Oha-you commented 2 years ago

Steps to reproduce

  1. Add and select a custom Element theme, for example Discord Dark (instructions here)
  2. Send a code block

    2021-12-02_183743

  3. Either
    • restart Element (a custom theme will be used by default) or
    • switch theme from Dark to a custom one two times

Outcome

What did you expect?

Code stays highlighted with different colors.

What happened instead?

Code is not highlighted. Animation:

element-code-block

Operating system

Windows 10

Application version

Element version 1.9.5

How did you install the app?

From https://element.io/get-started

Homeserver

matrix.org

Will you send logs?

No

towingie commented 1 week ago

up! still annoying

t3chguy commented 1 week ago

@towingie you're welcome to contribute a fix, labs features like custom themes don't really get much attention as they're not used by very many users.