Re: [yocto-patches] [wic][PATCH] README.md: literal cleanups

Quentin Schulz <[email protected]>
Newsgroups org.yoctoproject.lists.yocto-patches
Message-ID <[email protected]>
Hi Trevor,

On 6/11/26 2:42 PM, Trevor Woerner via lists.yoctoproject.org wrote:
> Using ```bash works in almost all markdown renderers, but unfortunately
> does not work on git.yoctoproject.org. Instead it inserts "bash" at the

TIL cgit supports markdown. Archwiki says it's done with python-markdown 
(or possibly md4c). It seems the former supports some syntax 
highlighting in fenced code blocks, c.f. 
https://python-markdown.github.io/extensions/fenced_code_blocks/#syntax-highlighting

Maybe it's something Michael could enable (but also, I'm not sure we 
should care too much about it :D).

Note that fenced blocks don't seem to be part of the Markdown "base" but 
implemented as an extension by many Markdown parsers (to varying level 
of support), see 
https://daringfireball.net/projects/markdown/syntax#precode.

> start of any such literal code block that uses it.
> 
> Technically a code block in markdown requires 4 spaces, not 3. Therefore
> the "git send-email ..." command would not be offset correctly in most
> markdown renderers. Either add another space, or delimit with ``` to
> match the other code blocks; I chose the latter.
> 

Reviewed-by: Quentin Schulz <[email protected]>

Thanks!
Quentin
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.