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

fix($core): Extract all headers tags instead of just h2, h3 #1904

Closed
wants to merge 1 commit into from

Conversation

shortdiv
Copy link
Contributor

@shortdiv shortdiv commented Oct 2, 2019

Summary
Addresses #1903

Currently, the headers are hardcoded to only include h2 and h3, this makes it hard/impossible to access any other non h2/h3 headers.

What kind of change does this PR introduce? (check at least one)

  • Bugfix
  • Feature
  • Code style update
  • Refactor
  • Docs
  • Build-related changes
  • Other, please describe:

Does this PR introduce a breaking change? (check one)

  • Yes
  • No

If yes, please describe the impact and migration path for existing applications:

The PR fulfills these requirements:

  • When resolving a specific issue, it's referenced in the PR's title (e.g. fix #xxx[,#xxx], where "xxx" is the issue number)

Copy link
Collaborator

@kefranabg kefranabg left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

@kefranabg kefranabg changed the title fix 1903 Extract all headers instead of just h2, h3 fix($core) Extract all headers tags instead of just h2, h3 Oct 3, 2019
@kefranabg kefranabg changed the title fix($core) Extract all headers tags instead of just h2, h3 fix($core): Extract all headers tags instead of just h2, h3 Oct 3, 2019
@funnycoderstar
Copy link

I have the same problem, but I think the headers are more suitable from the vuepress configuration. If not configured, the default is [h2,h3].

@kefranabg
Copy link
Collaborator

Yep, I just noticed that there was already an opened PR to handle this. The good news with this PR is that this can be configured by the user. This makes this PR obsolete I guess

@kefranabg
Copy link
Collaborator

I'm closing this PR in favor of #1730 that will fix the issue in a better way.

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

Successfully merging this pull request may close these issues.

3 participants