fix: don't show popovers on heading anchors
| | |
| | | { clientX, clientY }: { clientX: number; clientY: number }, |
| | | ) { |
| | | const link = this |
| | | if (link.dataset.noPopover === "true") { |
| | | return |
| | | } |
| | | |
| | | async function setPosition(popoverElement: HTMLElement) { |
| | | const { x, y } = await computePosition(link, popoverElement, { |
| | | middleware: [inline({ x: clientX, y: clientY }), shift(), flip()], |
| | |
| | | rehypeAutolinkHeadings, |
| | | { |
| | | behavior: "append", |
| | | properties: { |
| | | ariaHidden: true, |
| | | tabIndex: -1, |
| | | "data-no-popover": true, |
| | | }, |
| | | content: { |
| | | type: "text", |
| | | value: " ยง", |