mirror of
https://github.com/xoofx/markdig.git
synced 2026-02-04 05:44:50 +00:00
Can I apply a language to inline <code> blocks? #630
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @seangwright on GitHub (Oct 2, 2023).
Prism.js can highlight inline code blocks like
`<div></div>`but a language needs to specified (the way we do for multiline fenced code blocks.If a language is provided on the
<code>element then it will be highlighted.Is there a way to specify an inline code fence language? Something like
`[html]<div></div>`If not, I supposed I just need to supply some default styles for
<code>elements.@gfoidl commented on GitHub (Oct 3, 2023):
Does
work for you? dotnet fiddle displays the correct html-tags.
@seangwright commented on GitHub (Oct 3, 2023):
That produces this:
I want the code to be inline with the content: