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

Letters with diacritics (accents) are completely removed in TOC IDs #739

Open
DannyBen opened this issue Jul 13, 2023 · 0 comments
Open

Comments

@DannyBen
Copy link

Originally posted on DannyBen/madness#158

Reproduction Code

require 'redcarpet'

text = '## 2.4. Úprava plastové krabičky pro elektroniku'
renderer = Redcarpet::Render::HTML.new with_toc_data: true
html = Redcarpet::Markdown.new(renderer).render text
puts html

Actual Output

<h2 id="2-4-prava-plastov-krabi-ky-pro-elektroniku">
  2.4. Úprava plastové krabičky pro elektroniku
</h2>

Expected Output

<h2 id="2-4-úprava-plastové-krabičky-pro-elektroniku">
  2.4. Úprava plastové krabičky pro elektroniku
</h2>
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

No branches or pull requests

1 participant