-
Notifications
You must be signed in to change notification settings - Fork 171
Open
Description
here is highlight example
when I hover on tag token it does not work even those I turn off pointer-even: none of contenteditor wrapper.
<Highlight
{...defaultProps}
theme={theme}
code={code}
Prism={PrimsCombined}
language="token"
>
{({ className, style, tokens, getLineProps, getTokenProps }) => {
console.log("tokens", tokens);
return (
<div className={className} style={style}>
{tokens.map((line, i) => {
return (
<div {...getLineProps({ line, key: i })}>
{line.map((token, key) => {
const types = token.types;
const isTag = types?.includes("tag");
if (isTag)
return (
<span
className="my-anchor-element"
title="Hello world!"
{...getTokenProps({ token, key })}
/>
);
return <span {...getTokenProps({ token, key })} />;
})}
</div>
);
})}
</div>
);
}}
</Highlight>
can anyone help ??
Metadata
Metadata
Assignees
Labels
No labels