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

[Bug] ToC contents are broken when a header(#) has a link. #4

Closed
ryul1206 opened this issue Jun 17, 2021 · 1 comment · Fixed by #6
Closed

[Bug] ToC contents are broken when a header(#) has a link. #4

ryul1206 opened this issue Jun 17, 2021 · 1 comment · Fixed by #6
Labels
bug Something isn't working

Comments

@ryul1206
Copy link
Owner

Describe the bug
ToC contents are broken when a header(#) has a link.

To Reproduce

<!-- [[ multilingual toc: level=2 ]] -->

## Header1
## [Header2](https://www.google.com/)

This is converted to

1. [Header](#Header)
2. [[Header2](https://www.google.com/)](#Header2httpswwwgooglecom)

## Header1
## [Header2](https://www.google.com/)

Expected behavior

1. [Header1](#Header1)
2. [Header2](#Header2)

## Header1
## [Header2](https://www.google.com/)

Additional context

We need to check about

  • When the whole header is one link. / When partial of the header is a link
  • Markdown style link / HTML style link
@ryul1206 ryul1206 added the bug Something isn't working label Jun 17, 2021
@ryul1206
Copy link
Owner Author

ryul1206 commented Jul 1, 2021

Checklist

  • When the whole header is one link. (solved)
  • When partial of the header is a link (solved)
  • Markdown style link (solved)
  • HTML style link (solved)

@ryul1206 ryul1206 closed this as completed Jul 1, 2021
@ryul1206 ryul1206 mentioned this issue Jul 2, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant