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

Error parsing if link containing parentheses #311

Open
lindeer opened this issue Nov 6, 2022 · 0 comments
Open

Error parsing if link containing parentheses #311

lindeer opened this issue Nov 6, 2022 · 0 comments
Labels

Comments

@lindeer
Copy link

lindeer commented Nov 6, 2022

Summary

It is an old bug since gitbook, but still reproduce now. It is a parsing error of markdown file, caused by dependency library markdown-it (if i not mistake). It is fixed in latest markdown-it, maybe we need upgrade its version?

  • HonKit version: 4.0.4

Step to reproduce

  1. A book page as markdown format
  2. create a link text whose url contains parentheses
  • Link to code example:
[Pola](https://en.wikipedia.org/wiki/Pola_(Italian_province))

Expected results

<p><a href="https://en.wikipedia.org/wiki/Pola_(Italian_province)">Pola</a></p>

Actual results

<p><a href="https://en.wikipedia.org/wiki/Pola_(Italian_province" target="_blank">Pola</a>)</p>

@azu azu added Type: Bug Bug or Bug fixes Type: Markdown labels Nov 6, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants