To normalize a label, strip off the opening and closing brackets, perform the Unicode case fold, strip leading and trailing spaces
This PR also includes a script to generate the caseFoldingMap.
Also I have created an assets folder, my idea is to put these generated files together in this folder, now we have emojis.dart and case_folding.dart. There will be an html_entities.dart file later soon. If you agree with it, I will create another PR to move emojis.dart into it.
This PR simply implements the Unicode Case folding on
normalizeLinkLabel
function.See https://spec.commonmark.org/0.30/#link-label
This PR also includes a script to generate the
caseFoldingMap
.Also I have created an
assets
folder, my idea is to put these generated files together in this folder, now we haveemojis.dart
andcase_folding.dart
. There will be anhtml_entities.dart
file later soon. If you agree with it, I will create another PR to moveemojis.dart
into it.