ada-lang-io / ada-lang-io

An Open Source Community site for Ada
https://ada-lang.io
Apache License 2.0
89 stars 14 forks source link

When there are MarginText components inside a CodeBlock, the Ada syntax highlighting is not applied. Example: https://ada-lang.io/docs/arm/AA-A/AA-A.18#p147.1 #72

Open pyjarrett opened 9 months ago

pyjarrett commented 8 months ago

This is a result of:

Syntax highlighting only works on plain strings. Docusaurus will not attempt to parse code block content containing JSX children.

mgrojo commented 2 months ago

My impression is that now no code block is highlighted. Maybe after the update or the corrections for the main page?

Today, a simple search for "ada head function string" in Duck-Duck-Go listed lang-ada.io before the official ada-auth.org. The manual here looks nice and modern, but for source code even the official page is better looking, because at least keywords are bold.

Could someone take a look to this to get at least to the previous situation? And if MarginText makes this impossible to fix in full, I'd even advocate for removing the annotated version altogether until it works. Expert people will look at the official page. Or maybe two generations are better in that regard.