highlight.js
highlight.js copied to clipboard
(javascript/typescript) Inline {} code may also contain mixed JS/XML syntax:
Inline {} code may also contain mixed JS/XML syntax:
const Count = ({ count }) => {
return (
<div>
{count > 10 ? <BigCount /> : <SmallCount />}
</div>
);
}
Originally posted by @luisherranz in https://github.com/highlightjs/highlight.js/issues/2324#issuecomment-565960485
Pulling this out into a separate issue as I'm not sure I want to deal with this on the first pass of improved JSX support.