ocaml / omd

extensible Markdown library and tool in "pure OCaml"
ISC License
156 stars 45 forks source link

Fix spec 206: case insensitive comparison #272

Closed sonologico closed 2 years ago

sonologico commented 2 years ago

The problem is that the label comparison should be case insensitive, our normalization routine only works for ascii strings. Maybe someone more experienced with unicode has a better idea, but I think we'll just have to use an unicode library.

spec 206:

[ΑΓΩ]: /φου

[αγω]

Test result:

-<p><a href="/%CF%86%CE%BF%CF%85">αγω</a></p>
+<p>[ΑΓΩ]: /φου</p>
+<p>[αγω]</p>