In the rendered docs, a code block labelled with a language of tsx (or jsx for that matter) does not get any highlighting applied:
/**
```tsx
import { Context } from "@macromania/macromania";
import { P, Em } from "@macromania/macromania-html";
const ctx = new Context();
const someHtml = await ctx.evaluate(
<P clazz="neat">
This is a <Em>neat</Em> paragraph.
</P>
);
// Logs `"<p class="neat">This is a <em>neat</em> paragraph</p>"`.
console.log(someHtml);
```
*
* @module
*/
Yields:
Changing the language to ts gives highlighting (though it obviously does not handle the tsx syntax correctly):
(independently, that screenshot is running into #742)
In the rendered docs, a code block labelled with a language of
tsx(orjsxfor that matter) does not get any highlighting applied:Yields:
Changing the language to
tsgives highlighting (though it obviously does not handle the tsx syntax correctly):(independently, that screenshot is running into #742)