Skip to content

permalink: undefined in mardown settings disables Outline #3030

Open
@shellscape

Description

@shellscape

Describe the bug

When setting:

  markdown: {
    anchor: {
      permalink: undefined
    }
  },

The permalinks on header elements are successfully hidden, but that also disables the scroll-tracking for the "On This Page" outline sidebar as well.

Reproduction

I was able to reproduce this on the boilerplate project by applying the setting above to the config.

Expected behavior

Permalink symbols correctly hidden, outline continues to function.

System Info

MacOS Ventura
Vitepress@latest
Node v18

(envinfo hangs on an M2)

Additional context

No response

Validations

Metadata

Metadata

Assignees

No one assigned

    Labels

    has-workaroundHas workaround, low prioritystalethemeRelated to the theme

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions