Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Nested Header Links (h2) do not work when page(md) contain script tag #1090

Open
1 task done
ShighGoing opened this issue Dec 10, 2018 · 0 comments
Open
1 task done

Comments

@ShighGoing
Copy link

ShighGoing commented Dec 10, 2018

  • I confirm that this is a issue rather than a question.

Bug report

Version

vuepress@1.0.0-alpha.27

Steps to reproduce

  1. Initialize the docs according to the guidelines

  2. Create a config file with the following content

module.exports = {
  themeConfig: {
    nav: [
      { text: 'Home', link: '/' },
      { text: 'Guide', link: '/guide/' },
      { text: 'External', link: 'https://google.com' },
    ],
    sidebar: {
      '/guide/': ['', 'page-a']
    }
  }
}
  1. Add test page with the following content
# page A

## title1

## title2

## title3

// Add title until the scroll bar appears

<script>
export default {
  props: ['slot-key'] // workaround for other issue
}
</script>

What is expected?

Click h2 title and navigate to the correct location

What is actually happening?

Click title but no corresponding

Other relevant information

reproduction repo

  • Your OS: window 10
  • Node.js version: 10.13.0
  • Browser version: Version 70.0.3538.110
  • Is this a global or local install? local
  • Which package manager did you use for the install? yarn
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant