aboutsummaryrefslogtreecommitdiffstats
path: root/src/compiler.rs
diff options
context:
space:
mode:
authorLibravatar Titus Wormer <tituswormer@gmail.com>2022-06-15 12:13:02 +0200
committerLibravatar Titus Wormer <tituswormer@gmail.com>2022-06-15 12:13:02 +0200
commitdf5b39f8c1cb6b3f3a8a19c5a4722433e2ef1dff (patch)
tree5e32dc2969c2bfb1e2fac2d0d83d10351d86483f /src/compiler.rs
parent7d8cce920e74dfe5a24f52fb738035ff7a0390cc (diff)
downloadmarkdown-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 '')
-rw-r--r--src/compiler.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/compiler.rs b/src/compiler.rs
index 2a3f101..6f0215c 100644
--- a/src/compiler.rs
+++ b/src/compiler.rs
@@ -374,7 +374,7 @@ pub fn compile(events: &[Event], codes: &[Code], options: &CompileOptions) -> St
CharacterReferenceKind::Named => decode_named(ref_string),
};
- buf_tail_mut(buffers).push(value);
+ buf_tail_mut(buffers).push(encode(&value));
character_reference_kind = None;
}