Skip to content

Markdown formatting inside html files #4095

@inakianduaga

Description

@inakianduaga

Prettier already formats JS <script> tags inside html files.

It would be great if support for inline markdown

<script type="text/markdown">
... some markdown here
</script>

would be added, so adding inline markdown would be formatted correctly.

this is very useful for example for JS presentations using RevealJS or RemarkJS where you want to have the whole presentation in a single html file but most of the content is actually markdown.

Metadata

Metadata

Assignees

No one assigned

    Labels

    area:multiparserIssues with printing one language inside another, like CSS-in-JSlang:htmlIssues affecting HTML (and SVG but not JSX)lang:markdownIssues affecting Markdownlocked-due-to-inactivityPlease open a new issue and fill out the template instead of commenting.status:has prIssues with an accompanying pull request. These issues will probably be fixed soon!

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions