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: formatted headers #235

Merged
merged 2 commits into from
Dec 7, 2022
Merged

fix: formatted headers #235

merged 2 commits into from
Dec 7, 2022

Conversation

hongaar
Copy link
Contributor

@hongaar hongaar commented Nov 22, 2022

Really appreciate this package!

Running into this problem. Currently, headers like

# foo _bar_

are transformed into this TOC entry:

- [foo _bar_](#foo-_bar_)

But the actual anchor generated by GitHub is foo-bar and the TOC links break. Here's a sample

I've added a test to demonstrate this, not quite sure where to start fixing this. I ended up in the extractText function, however now I'm thinking maybe this should be fixed in https://github.com/thlorenz/anchor-markdown-header?

Any help is appreciated.

EDIT This is now addressed with thlorenz/anchor-markdown-header#48. If that lands I will update this PR.

@thlorenz
Copy link
Owner

Cool, we'll discuss details in the anchor markdown header PR since here we'll just have to bump the version once we figured it out.

@hongaar hongaar marked this pull request as ready for review December 7, 2022 08:07
@thlorenz thlorenz merged commit 95715a3 into thlorenz:master Dec 7, 2022
@hongaar hongaar deleted the fix/em branch December 7, 2022 18:42
@hongaar
Copy link
Contributor Author

hongaar commented Dec 16, 2022

Thanks for merging, could you publish a release so we can use this?

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