Skip to content

Feature: color mode support for shiki #8108

@bmakan

Description

@bmakan

Description

Currently, I identify two issues with Shiki Code Hightlight:

  1. I am unable to change the colors on the go (dark/light mode toggle).
    • I tried multiple approaches. Maybe I'm doing something wrong.
  2. The colors are stored in style attribute as rgb values. This means they will remain in the scheme they are written in even after exporting to html.
    • I export html and store it in the db, then display html instead of rendering lexical editor in non-edit mode.

Users will be able to see the code highlight in their preferred mode (potentially even theme).

Use vars instead of rgb values.

Impact

Basically anyone with dual color scheme.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementImprovement over existing feature

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions