Skip to content

shikiTheme should prop have priority over the code plugin default theme #496

@IcaroG

Description

@IcaroG

Problem Statement

When using the default code plugin, it would be good to control the theme via the prop. Atleast that is how the documentation makes it seem like it should work https://streamdown.ai/docs/usage#configuration

Proposed Solution

Change the order in here to prioritize the prop instead of the plugin default theme

shikiTheme: plugins?.code?.getThemes() ?? shikiTheme,

Alternatives Considered

No response

Use Case

Priority

Nice to have

Contribution

  • I am willing to help implement this feature

Additional Context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions