diff --git a/.changeset/heavy-geese-flow.md b/.changeset/heavy-geese-flow.md new file mode 100644 index 00000000..0b842a2b --- /dev/null +++ b/.changeset/heavy-geese-flow.md @@ -0,0 +1,5 @@ +--- +'myst-to-react': patch +--- + +Always show hover HashLink on mobile diff --git a/packages/myst-to-react/src/hashLink.tsx b/packages/myst-to-react/src/hashLink.tsx index d4e2e8e4..9310a0b0 100644 --- a/packages/myst-to-react/src/hashLink.tsx +++ b/packages/myst-to-react/src/hashLink.tsx @@ -61,7 +61,7 @@ export function HashLink({ id?: string; kind?: string; title?: string; - hover?: boolean; + hover?: boolean | 'desktop'; children?: '#' | '¶' | React.ReactNode; canSelectText?: boolean; className?: string; @@ -84,7 +84,9 @@ export function HashLink({