-
-
Notifications
You must be signed in to change notification settings - Fork 19
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
HTML ids are generated without diacritics and links do not work #158
Comments
Thanks for reporting. I will look into it. |
I think it should work now in the edge version. |
I've build it from origin/fix/diacritics-in-ids branch (hopefully that's what i should have done) and now none of my links work. But I do see some change in the generated webpage. <h2><a id='24-prava-plastov-krabiky-pro-elektroniku'></a>2.4. Úprava plastové krabičky pro elektroniku</h2> has changed to: <h2 id="2-4-prava-plastov-krabi-ky-pro-elektroniku">2.4. Úprava plastové krabičky pro elektroniku</h2> It's Czech language if that helps. |
Well. Let's take a step back.
I was using this markdown document to test: <!-- TOC -->
## 2.4. Úprava plastové krabičky pro elektroniku which resulted in this HTML: <ul>
<li><a href="#2-4-prava-plastov-krabi-ky-pro-elektroniku">2.4. Úprava plastové krabičky pro elektroniku</a></li>
</ul>
<h2 id="2-4-prava-plastov-krabi-ky-pro-elektroniku">2.4. Úprava plastové krabičky pro elektroniku</h2> with identical IDs, as expected. Now - I totally agree that the IDs should contain diacritics - especially if this is how GitHub does it.: 2.4. Úprava => 2-4-úprava # good
2.4. Úprava => 2-4-prava # bad but, unless this is changed in RedCarpet, I don't think there is much I can do about it. So to recap:
As a side note - I see that filenames with diacritics are not currently supported. |
Thank you for looking into this and for escalating it. |
Version 1.2.0 is now released, with support for Note that this requires having If anyone can confirm this works, or report that it doesn't, it will be appreciated. |
Is the docker image updated with support for pandoc renderer? |
Yup. Line 3 in 0fbe1e9
|
I also had to remove leading numbers and dots from Table of Contents links, since pandoc removes them from header IDs. madness/lib/madness/inline_table_of_contents.rb Lines 41 to 42 in 0fbe1e9
When using pandoc, headers that look like |
For example markdown link:
leading to a heading within the same webpage:
correctly generates link:
but in the heading id diacritics are missing:
therefore the link from above leads to nowhere.
Github generates id looking like this:
which seems to work fine.
The text was updated successfully, but these errors were encountered: