cloose / CuteMarkEd

Qt Markdown Editor
http://cloose.github.io/CuteMarkEd
Other
1.48k stars 319 forks source link

ID attribute of HTML Headings does not work with chinese characters #170

Open NoAnyLove opened 10 years ago

NoAnyLove commented 10 years ago

CuteMarkEd generates heading elements with an id attribute converted from the content of heading. But when using chinese characters as headings, the id attribute is just some dots.

qq 20140911210101

cloose commented 10 years ago

Thanks @NoAnyLove.

This looks like an issue in the 3rd party Markdown converter library that CuteMarkEd uses. I suspect you use the default converter discount, right? You can find the selected converter in the options dialog.

I have to do some research here.

NoAnyLove commented 10 years ago

@cloose Yes, I use the default Markdown converter. I tried Hoedown, it works fine, generating IDs like toc_0 and toc_1.

BTW, I think the chinese translation is not so good at some aspect. I didn't notice there is an option to choose Markdown converter, since the text of that option shows something like "translation dictionary" in chinese, and the name of the default converter was translated to "decrease progressively".

cloose commented 10 years ago

Thanks for the hint regarding the translations. I will open an issue to add some more comments for the translators.

By the way. Could you great a small test case Markdown file that shows the problem? I would then create an issue in the upstream discount project.

Thanks!

NoAnyLove commented 10 years ago

Sure. Here attahed a test case file. In order to upload it, I have to renamed it to jpg. Just download it and rename it to test.md.

test md

cloose commented 9 years ago

This upstream bug was reported as issue Orc/discount#126