John MacFarlane
8ca191604d
Add new unexported module T.P.XMLParser.
...
This exports functions that uses xml-conduit's parser to
produce an xml-light Element or [Content]. This allows
existing pandoc code to use a better parser without
much modification.
The new parser is used in all places where xml-light's
parser was previously used. Benchmarks show a significant
performance improvement in parsing XML-based formats
(especially ODT and FB2).
Note that the xml-light types use String, so the
conversion from xml-conduit types involves a lot
of extra allocation. It would be desirable to
avoid that in the future by gradually switching
to using xml-conduit directly. This can be done
module by module.
The new parser also reports errors, which we report
when possible.
A new constructor PandocXMLError has been added to
PandocError in T.P.Error [API change].
Closes #7091 , which was the main stimulus.
These changes revealed the need for some changes
in the tests. The docbook-reader.docbook test
lacked definitions for the entities it used; these
have been added. And the docx golden tests have been
updated, because the new parser does not preserve
the order of attributes.
Add entity defs to docbook-reader.docbook.
Update golden tests for docx.
2021-02-10 22:04:11 -08:00
..
2021-02-10 22:04:11 -08:00
2021-02-10 22:04:11 -08:00
2020-12-10 15:44:10 -08:00
2019-05-15 13:31:07 +03:00
2020-07-02 09:03:56 -07:00
2021-02-02 21:04:30 -08:00
2020-04-15 23:03:22 -04:00
2021-02-10 22:04:11 -08:00
2021-01-02 07:56:07 -08:00
2021-02-10 22:04:11 -08:00
2020-04-15 23:03:22 -04:00
2019-10-30 08:51:33 -07:00
2019-10-30 08:51:33 -07:00
2021-02-10 22:04:11 -08:00
2020-06-14 10:45:52 -07:00
2018-07-30 14:38:38 -07:00
2019-01-01 14:07:26 -08:00
2018-03-11 18:20:36 -07:00
2020-04-15 23:03:22 -04:00
2020-11-27 21:21:25 +01:00
2020-11-27 21:21:25 +01:00
2021-02-10 22:04:11 -08:00
2021-02-10 22:04:11 -08:00
2019-12-17 21:07:46 -08:00
2020-04-09 16:21:45 +02:00
2019-03-13 18:21:00 -06:00
2020-11-26 12:04:31 -08:00
2019-01-08 11:36:33 -08:00
2020-12-17 11:10:00 -08:00
2020-12-17 11:10:00 -08:00
2021-02-03 08:54:11 -08:00
2021-02-03 08:54:11 -08:00
2019-01-08 11:36:33 -08:00
2019-01-08 11:36:33 -08:00
2018-04-19 13:47:16 -07:00
2018-04-19 13:47:16 -07:00
2018-10-27 23:37:18 -07:00
2020-04-15 23:03:22 -04:00
2020-09-21 10:10:37 -07:00
2021-01-07 11:07:03 -08:00
2020-04-15 23:03:22 -04:00
2019-01-30 18:27:38 +01:00
2020-11-18 14:48:56 +01:00
2020-04-15 23:03:22 -04:00
2021-01-07 11:07:03 -08:00
2020-02-13 10:27:34 -08:00
2020-05-18 22:45:44 -07:00
2020-10-10 11:15:35 -07:00
2020-05-18 22:45:44 -07:00
2021-01-07 11:07:03 -08:00
2019-01-07 22:10:34 -08:00
2019-02-09 08:21:53 -08:00
2018-04-21 13:06:57 -07:00
2019-08-25 14:24:31 -07:00
2018-04-21 13:06:57 -07:00
2018-04-21 13:06:57 -07:00
2019-08-25 14:24:31 -07:00
2020-04-15 23:03:22 -04:00
2020-04-20 13:57:36 +08:00
2018-04-21 13:06:57 -07:00
2018-04-21 13:06:57 -07:00
2018-04-21 13:06:57 -07:00
2020-11-19 22:09:52 +01:00
2020-11-19 22:09:52 +01:00
2020-11-19 22:09:52 +01:00
2020-01-07 22:11:51 +01:00
2021-01-02 07:56:07 -08:00
2018-10-17 17:26:37 -07:00
2018-04-21 14:16:24 -07:00
2019-08-25 14:24:31 -07:00
2020-12-30 13:40:11 -08:00
2018-10-25 18:35:02 +03:00
2020-04-15 23:03:22 -04:00
2019-11-03 07:17:05 -08:00
2020-11-18 14:48:56 +01:00
2018-04-21 13:06:57 -07:00
2018-10-06 22:33:24 -07:00
2019-08-25 14:24:31 -07:00
2020-04-15 23:03:22 -04:00
2018-04-21 13:06:57 -07:00
2019-08-25 14:24:31 -07:00
2019-08-25 14:24:31 -07:00
2019-08-25 14:24:31 -07:00
2019-08-25 14:24:31 -07:00
2021-02-07 10:02:35 -08:00
2019-02-25 17:33:54 -08:00
2020-10-14 22:26:51 +02:00
2020-10-14 22:26:51 +02:00
2020-04-15 23:03:22 -04:00
2020-04-15 23:03:22 -04:00
2020-04-28 07:53:06 -07:00
2018-07-02 19:07:28 +03:00
2020-04-15 23:03:22 -04:00
2020-04-06 16:41:28 -07:00
2020-09-19 18:22:52 -07:00
2020-09-19 18:22:52 -07:00
2021-01-06 14:39:44 -08:00
2020-10-08 12:32:42 -07:00
2020-04-01 23:09:14 -07:00
2020-04-01 23:09:14 -07:00
2020-11-04 22:38:53 -08:00
2019-05-15 13:31:07 +03:00
2019-02-25 17:33:54 -08:00
2020-11-02 10:51:18 -08:00
2020-11-02 10:51:18 -08:00
2020-12-12 14:49:11 +01:00
2021-01-19 20:39:58 -08:00
2021-01-19 20:39:58 -08:00
2021-01-19 20:39:58 -08:00
2020-07-17 16:02:40 +02:00
2021-02-03 08:54:11 -08:00
2019-09-23 17:46:39 -07:00
2020-11-14 21:33:32 -08:00
2019-02-25 17:33:54 -08:00
2020-03-07 21:54:29 -08:00
2019-07-28 19:25:45 -07:00
2019-02-25 17:33:54 -08:00
2019-10-30 21:26:21 -07:00
2019-02-25 17:33:54 -08:00
2020-11-18 14:48:56 +01:00
2019-09-22 11:33:09 -07:00
2019-08-25 14:24:31 -07:00
2019-02-25 17:33:54 -08:00
2018-08-16 21:19:03 -07:00
2019-02-25 17:33:54 -08:00
2019-10-29 22:21:35 -07:00
2019-04-02 17:27:02 -06:00
2019-01-01 14:08:38 -08:00
2021-01-06 14:39:44 -08:00
2021-02-03 08:54:11 -08:00