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

[Heading Permallink]: Define levels #519

Closed
joshbruce opened this issue Jul 17, 2020 · 2 comments · Fixed by #520
Closed

[Heading Permallink]: Define levels #519

joshbruce opened this issue Jul 17, 2020 · 2 comments · Fixed by #520
Assignees
Labels
do not close Issue which won't close due to inactivity enhancement New functionality or behavior implemented Change has been implemented
Milestone

Comments

@joshbruce
Copy link
Contributor

Description

At present there doesn't seem to be a way to configure the heading permalink extension to ignore some headers - compare to the table of contents extension.

Could be an array of header levels to include mapped to the markdown or html equivalents.

I have a site where the first line of HTML is always at the very top and is an H1 heading and I'd rather it not have this added. I use a workaround at present.

Example

// default
["heading_permalink" => [
  "levels" => [1, 2, 3, 4, 5, 6]
]

// skip h1
["heading_permalink" => [
  "levels" => [2, 3, 4, 5, 6]
]

Seems like it would be the most versatile approach.

@joshbruce joshbruce added the enhancement New functionality or behavior label Jul 17, 2020
@colinodell
Copy link
Member

I like it! This should be easy enough to implement for the upcoming 2.x release in a couple of months.

@colinodell colinodell added do not close Issue which won't close due to inactivity up-for-grabs Please feel free to take this one! and removed up-for-grabs Please feel free to take this one! labels Jul 17, 2020
@colinodell colinodell self-assigned this Jul 18, 2020
@colinodell colinodell added this to the v2.0 milestone Jul 18, 2020
@close-label close-label bot added the implemented Change has been implemented label Jul 19, 2020
@joshbruce
Copy link
Contributor Author

I should have put a note of the workaround I came to for this...guess I'll be figuring that one out again until 2.0 is released. lol

No pressure. Just laughing at myself.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
do not close Issue which won't close due to inactivity enhancement New functionality or behavior implemented Change has been implemented
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants