Skip to content

The "Code mentions" feature in codehike does not work in island.js #185

@codersjj

Description

@codersjj

Describe the bug

I'm writing interactive documentation with Code Hike.
When using codehike's "Code mentions" feature, island.js failed to correctly parse and add mention effects, while the same code worked in codehike's examples/vite.

Reproduction

see https://codesandbox.io/p/sandbox/codehike-demo-jlzjwv
and see "Open devtool" -> "Preview:5173" -> "Click to view" -> "Menu" -> "Astro" in https://codesandbox.io/p/sandbox/ancient-tdd-zlh9qn?file=%2Fisland-app%2Fdocs%2F.island%2Fconfig.ts%3A39%2C37

Expected behavior

see https://codehike.org/docs/ch-section#code-mentions

System Info

-

Additional context

No response

Validations

  • Read the docs
  • Check that there isn't already an issue that reports the same bug to avoid creating a duplicate.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions