From 671cfcd86916518ead37c868c039638e53c1239a Mon Sep 17 00:00:00 2001 From: Ilona Silverwood Date: Fri, 14 Oct 2022 07:47:05 -0700 Subject: doc/custom-reader.md: rewrite BytestringReader paragraph --- doc/custom-readers.md | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) (limited to 'doc') diff --git a/doc/custom-readers.md b/doc/custom-readers.md index e0b6e4915..1004ca56c 100644 --- a/doc/custom-readers.md +++ b/doc/custom-readers.md @@ -78,13 +78,12 @@ ensuring backwards compatibility. # Bytestring readers -Pandoc expects text input to be UTF-8 encoded. However, formats -like docx, odt, epub, etc. are not text but binary formats. To -read them, pandoc supports `ByteStringReader` functions. These -functions work just like the `Reader` function that process text -input, but instead of a list of sources, `ByteStringReader` -functions are passed a bytestring, i.e., a string that contains -the binary input. +In order to read binary formats, including docx, odt, and epub, +pandoc supports the `ByteStringReader` function. A +`ByteStringReader` function is similar to the `Reader` function +that processes text input. Instead of a list of sources, the +ByteStringReader function is passed a bytestring, i.e., a string +that contains the binary input. ``` lua -- read input as epub -- cgit v1.2.3