-
-
Notifications
You must be signed in to change notification settings - Fork 145
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
strings: Case::DontPreserve is now Case::Fold.
We add `caseless` to do the folding. It matches upstream enough [^1], unlike e.g. ICU4X's `CaseMapper` (doesn't fold Eszett to "ss"), and also unlike ICU4X, it doesn't require us to bump our MSRV. 2/2 sgtm A separate `--gfm-quirks` CLI option is added since base tests fail if we just turn on all of GFM for them. The nice thing about `caseless` is that while its last release may be 6 years ago, it depends on unicode-normalization ^0.1, the latest of which is 5 months ago. It's also [very easy to read][caseless], so I'm all good with this. [^1] Not that straightforward: commonmark/commonmark-spec#695 [caseless]: https://github.com/unicode-rs/rust-caseless/blob/v0.2.1/src/lib.rs
- Loading branch information
Showing
7 changed files
with
67 additions
and
23 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters