Witiko / markdown

:notebook_with_decorative_cover: A package for converting and rendering markdown documents in TeX
http://ctan.org/pkg/markdown
LaTeX Project Public License v1.3c
331 stars 31 forks source link

Using markdownRendererFencedCodeAttributeContextBegin-End #480

Closed l0th3r closed 3 months ago

l0th3r commented 3 months ago

Hi,

I would like to reproduce the look of the markdown code blocks in Github like so: Inline code exemple

void CodeBlockExemple(void)
{
    return;
}

I don´t know if it's the good approach but I planned on using \colorbox to get the result I wanted as so:\ Inline \colorbox{red} {code} exemple (red color just for exemple) image

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.

What could I do different ? Thank you so much in advance for the time and help !