John MacFarlane
967e7f5fb9
Rename Text.Pandoc.XMLParser -> Text.Pandoc.XML.Light...
...
..and add new definitions isomorphic to xml-light's, but with
Text instead of String. This allows us to keep most of the code in
existing readers that use xml-light, but avoid lots of unnecessary
allocation.
We also add versions of the functions from xml-light's
Text.XML.Light.Output and Text.XML.Light.Proc that operate
on our modified XML types, and functions that convert
xml-light types to our types (since some of our dependencies,
like texmath, use xml-light).
Update golden tests for docx and pptx.
OOXML test: Use `showContent` instead of `ppContent` in `displayDiff`.
Docx: Do a manual traversal to unwrap sdt and smartTag.
This is faster, and needed to pass the tests.
Benchmarks:
A = prior to 8ca191604d (Feb 8)
B = as of 8ca191604d (Feb 8)
C = this commit
| Reader | A | B | C |
| ------- | ----- | ------ | ----- |
| docbook | 18 ms | 12 ms | 10 ms |
| opml | 65 ms | 62 ms | 35 ms |
| jats | 15 ms | 11 ms | 9 ms |
| docx | 72 ms | 69 ms | 44 ms |
| odt | 78 ms | 41 ms | 28 ms |
| epub | 64 ms | 61 ms | 56 ms |
| fb2 | 14 ms | 5 ms | 4 ms |
2021-02-16 16:55:20 -08:00
..
2021-02-13 13:08:34 -08:00
2021-02-16 16:55:20 -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-16 16:55:20 -08:00
2021-01-02 07:56:07 -08:00
2021-02-16 16:55:20 -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-02-15 13:15:14 +01:00
2021-01-19 20:39:58 -08:00
2021-02-15 13:15:14 +01: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