Skip to content

No code block highlighting for tsx or jsx language #746

Description

@AljoschaMeyer

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:

Image

Changing the language to ts gives highlighting (though it obviously does not handle the tsx syntax correctly):

Image

(independently, that screenshot is running into #742)

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions