Skip to content

Impossible to use stylesheets #523

@dims12

Description

@dims12

Describe the bug
Native markdown supports stylesheets while markdown2 doesn't

To Reproduce
Add stylesheet at the beginning of MD file like this

<style>
code {
    white-space:pre;
    font-family: "Lucida Console", "Courier New", monospace;
    background-color: darkblue;
    color: lightyellow;
    line-height: 1;
}
pre > code {
    display: block;
}
</style>

add some inline code and code blocks then render it.

You will see that stylessheet will be corrupted with <p> tags and pre > code will be rendered as pre &gt; code.

Expected behavior
The stylesheet should move to the rendered file as is. The block code reagions should then get pre > code style, while inline code regions should get only code style.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions