Skip to content

Using markdownRendererFencedCodeAttributeContextBegin-End #481

Answered by Witiko
l0th3r asked this question in Q&A
Discussion options

You must be logged in to vote

And I am having a hard time using markdownRendererFencedCodeAttributeContextBegin and markdownRendererFencedCodeAttributeContextEnd. I checked in the documentation, there is an example of how to use it with the minted package but I am not getting where I want with the \colorbox command.

The fenced code attribute context renderers are only produced when the fencedCodeAttributes option has been enabled and there are HTML attributes attached to a fenced code block.

For example, assume that you have the following Markdown document example.md:

~~~~ {#mycode .haskell .numberLines startFrom=100}
qsort []     = []
qsort (x:xs) = qsort (filter (< x) xs) ++ [x] ++
               qsort (filter (>=…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@l0th3r
Comment options

Answer selected by l0th3r
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #480 on August 14, 2024 09:34.