diff options
author | Titus Wormer <tituswormer@gmail.com> | 2022-06-15 12:13:02 +0200 |
---|---|---|
committer | Titus Wormer <tituswormer@gmail.com> | 2022-06-15 12:13:02 +0200 |
commit | df5b39f8c1cb6b3f3a8a19c5a4722433e2ef1dff (patch) | |
tree | 5e32dc2969c2bfb1e2fac2d0d83d10351d86483f /src/construct/character_reference.rs | |
parent | 7d8cce920e74dfe5a24f52fb738035ff7a0390cc (diff) | |
download | markdown-rs-df5b39f8c1cb6b3f3a8a19c5a4722433e2ef1dff.tar.gz markdown-rs-df5b39f8c1cb6b3f3a8a19c5a4722433e2ef1dff.tar.bz2 markdown-rs-df5b39f8c1cb6b3f3a8a19c5a4722433e2ef1dff.zip |
Add tests for character reference
* Fix encoding of character references
* Fix unneeded remainder in `nok` state
Diffstat (limited to 'src/construct/character_reference.rs')
-rw-r--r-- | src/construct/character_reference.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/construct/character_reference.rs b/src/construct/character_reference.rs index ba2ad61..af9c02e 100644 --- a/src/construct/character_reference.rs +++ b/src/construct/character_reference.rs @@ -189,7 +189,7 @@ fn value(tokenizer: &mut Tokenizer, code: Code, info: Info) -> StateFnResult { if let Kind::Named = info.kind { if !CHARACTER_REFERENCE_NAMES.contains(&value.as_str()) { - return (State::Nok, Some(vec![code])); + return (State::Nok, None); } } |