Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Vanilla JS Version: Highlighter ignores colorScheme #135

Open
danielputschoegl opened this issue Aug 22, 2024 · 2 comments
Open

Vanilla JS Version: Highlighter ignores colorScheme #135

danielputschoegl opened this issue Aug 22, 2024 · 2 comments

Comments

@danielputschoegl
Copy link

danielputschoegl commented Aug 22, 2024

Despite configured in DisplayOptions

import { highlighter } from "@nlux/highlighter";

createAiChat<string>()
    .withDisplayOptions({
        colorScheme: 'light'
    })
    .withMessageOptions({
        syntaxHighlighter: highlighter,
     })
<pre data-language="typescript" class="highlighter-dark">...</pre>

is rendered in the DOM

@danielputschoegl danielputschoegl changed the title Vanilla JS Version: Highlighter ignores Color Scheme Vanilla JS Version: Highlighter ignores colorScheme Aug 22, 2024
@nadav-zeira
Copy link

This also happens in the main react package.
Looking for a hotfix because I couldn't fix it even with createHighlighter...(). Super annoying.

@nadav-zeira
Copy link

Related issue: #90
There you can view the source-code causing this bug.
Presumably, there's no possible way to override this bug for now, which is pretty bad because it breaks the highlighter completely.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants