Skip to content

FSFormatting.Literate with code that is not F# #468

@kblohm

Description

@kblohm

Hi,
while the Markdown HTML Formatter formats codeblocks as <pre><code class="language-***">...</code></pre>,
the Literate module uses <pre class=\"fssnip\"><code lang=\"%s\">%s</code></pre> (lang attribute instead of class.) This makes it very inconvenient to use alternative formatting tools like prism.js or highlight.js to format code that is not F#. Is this behaviour intended?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions