Skip to content

.wmde-markdown md global style intrusion #261

@NieZhuZhu

Description

@NieZhuZhu

Is it possible to put this css style into the .wmde-markdown class package?
The styles imported by react-markdown-preview have a higher priority, but variables such as --color-prettylights-syntax-entity-tag are not under the global body tag. If the user uses prism to highlight code blocks, the following code causes prism highlighting to be unavailable.
https://github.com/uiwjs/react-markdown-preview/blob/master/core/src/styles/markdown.less#L1084-L1176
image

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