Hi Ghost team,
I noticed that Ghost code blocks do not currently support TypeScript syntax highlighting.
When a code block contains TypeScript features such as generics, interfaces, or type annotations, selecting JavaScript does not highlight the code correctly. For example:
const [state, setState] =
useState<RabbitHoleState | null>(null);
At the moment, the workaround is to upload code screenshots, but proper TypeScript support would make technical posts more accessible, searchable, and easier to maintain.
Would it be possible to add TypeScript as a supported language for code block syntax highlighting?
Thanks!