pandoc/test
Joseph C. Sible a5a3ac9946
Various minor cleanups and refactoring (#6117)
* Use concatMap instead of reimplementing it

* Replace an unnecessary multi-way if with a regular if

* Use sortOn instead of sortBy and comparing

* Use guards instead of lots of indents for if and else

* Remove redundant do blocks

* Extract common functions from both branches of maybe

Whenever both the Nothing and the Just branch of maybe do the same
function, do that function on the result of maybe instead.

* Use fmap instead of reimplementing it from maybe

* Use negative forms instead of negating the positive forms

* Use mapMaybe instead of mapping and then using catMaybes

* Use zipWith instead of mapping over the result of zip

* Use unwords instead of reimplementing it

* Use <$ instead of <$> and const

* Replace case of Bool with if and else

* Use find instead of listToMaybe and filter

* Use zipWithM instead of mapM and zip

* Inline lambda wrappers into the real functions

* We get zipWithM from Text.Pandoc.Writers.Shared

* Use maybe instead of fromMaybe and fmap

I'm not sure how this one slipped past me.

* Increase a bit of indentation
2020-02-07 08:38:24 +01:00
..
command MediaWiki writer: prevent triple [[[. 2020-02-05 10:08:18 -08:00
docx Change styles in reference.docx. 2019-11-16 09:48:05 -08:00
epub add tests for EPUB2 and EPUB3 cover reader 2019-06-22 22:07:26 +02:00
fb2 FB2 writer: do not wrap note references into <sup> and brackets 2019-05-15 13:31:07 +03:00
ipynb Include execution output in ipynb test. 2019-03-09 16:53:53 -08:00
lua Lua filters: allow filtering of element lists (#6040) 2020-01-15 14:26:00 -08:00
media
odt Add a test for MathML formulas in ODT documents 2019-06-20 21:55:31 +02:00
pptx PowerPoint writer: Start numbering at appopriate numbers. 2019-08-27 01:24:41 -04:00
Tests Various minor cleanups and refactoring (#6117) 2020-02-07 08:38:24 +01:00
bodybg.gif
creole-reader.native
creole-reader.txt
docbook-chapter.docbook docbook reader: fix nesting of chapters and sections (#5864) 2019-10-30 08:51:33 -07:00
docbook-chapter.native docbook reader: fix nesting of chapters and sections (#5864) 2019-10-30 08:51:33 -07:00
docbook-reader.docbook
docbook-reader.native
docbook-xref.docbook
docbook-xref.native DocBook reader: metadata handling improvements. 2018-07-30 14:38:38 -07:00
dokuwiki_external_images.dokuwiki Dokuwiki writer: remove automatic ':' prefix before internal image links (#5183) 2019-01-01 14:07:26 -08:00
dokuwiki_external_images.native
dokuwiki_inline_formatting.dokuwiki
dokuwiki_inline_formatting.native
dokuwiki_multiblock_table.dokuwiki Dokuwiki writer: fix LineBreaks in Tables (#4444) 2018-03-11 18:20:36 -07:00
dokuwiki_multiblock_table.native Dokuwiki writer: fix LineBreaks in Tables (#4444) 2018-03-11 18:20:36 -07:00
grofftest.sh grofftest.sh - set resource path more appropriately. 2018-11-02 17:22:56 -07:00
haddock-reader.haddock
haddock-reader.native
html-reader.html HTML reader/writer: Better handling of <q> with cite attribute (#5837) 2019-10-24 22:27:49 -07:00
html-reader.native HTML reader/writer: Better handling of <q> with cite attribute (#5837) 2019-10-24 22:27:49 -07:00
insert
jats-reader.native Remove extraneous, significant whitespace in JATS writer output (#4335) 2018-03-05 09:44:34 -08:00
jats-reader.xml Update JATS dtd (#6020) 2019-12-30 22:18:55 -08:00
jira-reader.jira Add jira reader (#5913) 2019-12-17 21:07:46 -08:00
jira-reader.native Add jira reader (#5913) 2019-12-17 21:07:46 -08:00
lalune.jpg
latex-reader.latex LaTeX reader test: Allow compilation of file (#5364) 2019-03-13 18:21:00 -06:00
latex-reader.native
lhs-test-markdown.native Removed superfluous sourceCode class on code blocks. 2019-01-08 11:36:33 -08:00
lhs-test.fragment.html+lhs
lhs-test.html HTML-based templates: Add CSS to suppress bullet on unordered task lists. 2019-12-05 09:36:34 -08:00
lhs-test.html+lhs HTML-based templates: Add CSS to suppress bullet on unordered task lists. 2019-12-05 09:36:34 -08:00
lhs-test.latex Fix test suite for new skylighting. 2020-01-27 08:25:25 -08:00
lhs-test.latex+lhs Keep the \author{} command even if author is not specified (#5961) 2019-12-05 10:22:31 -08:00
lhs-test.markdown Removed superfluous sourceCode class on code blocks. 2019-01-08 11:36:33 -08:00
lhs-test.markdown+lhs
lhs-test.native Removed superfluous sourceCode class on code blocks. 2019-01-08 11:36:33 -08:00
lhs-test.rst RST writer: use more consistent indentation. 2018-04-19 13:47:16 -07:00
lhs-test.rst+lhs RST writer: use more consistent indentation. 2018-04-19 13:47:16 -07:00
man-reader.man Man reader: allow block-level content in table cells. 2018-10-27 23:37:18 -07:00
man-reader.native Man reader: allow block-level content in table cells. 2018-10-27 23:37:18 -07:00
markdown-citations.native Fix markdown-citations test for new abbreviations changes. 2018-11-20 23:56:13 -05:00
markdown-citations.txt
markdown-reader-more.native Markdown reader: distinguish autolinks in the AST. 2018-09-19 14:53:29 -07:00
markdown-reader-more.txt
mediawiki-reader.native MediaWiki reader: use _ instead of - in auto-identifiers. 2019-01-25 17:10:49 -08:00
mediawiki-reader.wiki
movie.jpg
opml-reader.native
opml-reader.opml
org-select-tags.native Org reader: add support for #+SELECT_TAGS. 2019-01-30 18:27:38 +01:00
org-select-tags.org Org reader: add support for #+SELECT_TAGS. 2019-01-30 18:27:38 +01:00
pipe-tables.native Markdown: Improved computation of relative cell widths in pipe tables. 2017-12-12 15:36:29 -08:00
pipe-tables.txt
rst-reader.native Shared.compactify: Avoid mixed lists. 2019-02-25 17:33:54 -08:00
rst-reader.rst Shared.compactify: Avoid mixed lists. 2019-02-25 17:33:54 -08:00
s5-basic.html HTML-based templates: Add CSS to suppress bullet on unordered task lists. 2019-12-05 09:36:34 -08:00
s5-fancy.html HTML-based templates: Add CSS to suppress bullet on unordered task lists. 2019-12-05 09:36:34 -08:00
s5-fragment.html
s5-inserts.html HTML-based templates: Add CSS to suppress bullet on unordered task lists. 2019-12-05 09:36:34 -08:00
s5.native
tables-rstsubset.native RST writer: use simple tables when possible. 2018-10-06 22:33:24 -07:00
tables.asciidoc Asciidoc writer: shorter delimiters for tables, blockquotes. 2019-01-07 22:10:34 -08:00
tables.asciidoctor Adds Asciidoctor sprcific writer and tests 2019-02-09 08:21:53 -08:00
tables.context Markdown reader/writer: spacing adjustments in tables. 2018-04-21 13:06:57 -07:00
tables.custom Use new doctemplates, doclayout. 2019-08-25 14:24:31 -07:00
tables.docbook4 Markdown reader/writer: spacing adjustments in tables. 2018-04-21 13:06:57 -07:00
tables.docbook5 Markdown reader/writer: spacing adjustments in tables. 2018-04-21 13:06:57 -07:00
tables.dokuwiki Use new doctemplates, doclayout. 2019-08-25 14:24:31 -07:00
tables.fb2 Use new doctemplates, doclayout. 2019-08-25 14:24:31 -07:00
tables.haddock Markdown reader/writer: spacing adjustments in tables. 2018-04-21 13:06:57 -07:00
tables.html4 Markdown reader/writer: spacing adjustments in tables. 2018-04-21 13:06:57 -07:00
tables.html5 Markdown reader/writer: spacing adjustments in tables. 2018-04-21 13:06:57 -07:00
tables.icml Markdown reader/writer: spacing adjustments in tables. 2018-04-21 13:06:57 -07:00
tables.jats Markdown reader/writer: spacing adjustments in tables. 2018-04-21 13:06:57 -07:00
tables.jira Jira writer: fix output of table headers 2020-01-07 22:11:51 +01:00
tables.latex Markdown reader/writer: spacing adjustments in tables. 2018-04-21 13:06:57 -07:00
tables.man Move common groff functions to Text.Pandoc.Writers.Groff 2018-10-17 17:26:37 -07:00
tables.markdown Small test suite update. Markdown tables. 2018-04-21 14:16:24 -07:00
tables.mediawiki Use new doctemplates, doclayout. 2019-08-25 14:24:31 -07:00
tables.ms Groff writer character escaping changes. 2018-10-23 21:44:07 -07:00
tables.muse Muse writer: add support for grid tables 2018-10-25 18:35:02 +03:00
tables.native Markdown reader/writer: spacing adjustments in tables. 2018-04-21 13:06:57 -07:00
tables.opendocument Place caption before table in OpenDocument format. (#5869) 2019-11-03 07:17:05 -08:00
tables.org Fix test/tables.org 2020-01-03 08:38:58 +01:00
tables.plain Markdown reader/writer: spacing adjustments in tables. 2018-04-21 13:06:57 -07:00
tables.rst RST writer: use simple tables when possible. 2018-10-06 22:33:24 -07:00
tables.rtf Use new doctemplates, doclayout. 2019-08-25 14:24:31 -07:00
tables.tei
tables.texinfo Markdown reader/writer: spacing adjustments in tables. 2018-04-21 13:06:57 -07:00
tables.textile Use new doctemplates, doclayout. 2019-08-25 14:24:31 -07:00
tables.txt Use new doctemplates, doclayout. 2019-08-25 14:24:31 -07:00
tables.xwiki Use new doctemplates, doclayout. 2019-08-25 14:24:31 -07:00
tables.zimwiki Use new doctemplates, doclayout. 2019-08-25 14:24:31 -07:00
test-pandoc.hs Add jira reader (#5913) 2019-12-17 21:07:46 -08:00
testsuite.native Shared.compactify: Avoid mixed lists. 2019-02-25 17:33:54 -08:00
testsuite.txt
textile-reader.native More spellcheck 2018-07-02 19:07:28 +03:00
textile-reader.textile More spellcheck 2018-07-02 19:07:28 +03:00
tikiwiki-reader.native TikiWiki reader: improve list parsing (#4723) 2018-06-28 13:35:54 +02:00
tikiwiki-reader.tikiwiki
twiki-reader.native
twiki-reader.twiki
txt2tags.native
txt2tags.t2t More spellcheck 2018-07-02 19:07:28 +03:00
vimwiki-reader.native Vimwiki reader: improve handling of internal links. 2019-04-05 10:04:28 -07:00
vimwiki-reader.wiki Vimwiki reader: test empty preformatted text 2018-10-24 15:07:05 +03:00
writer.asciidoc asciidoc writer: don't include + in code blocks for regular asciidoc. 2019-09-04 14:57:22 -07:00
writer.asciidoctor Asciidoc writer: use ` +...+ ` form for inline code. 2019-05-05 21:57:30 -07:00
writer.context ConTeXt template: Adjustments to title formatting (#5949) 2019-12-11 08:28:11 -08:00
writer.custom Use new doctemplates, doclayout. 2019-08-25 14:24:31 -07:00
writer.docbook4 Use new doctemplates, doclayout. 2019-08-25 14:24:31 -07:00
writer.docbook5 Use new doctemplates, doclayout. 2019-08-25 14:24:31 -07:00
writer.dokuwiki Shared.compactify: Avoid mixed lists. 2019-02-25 17:33:54 -08:00
writer.fb2 FB2 writer: do not wrap note references into <sup> and brackets 2019-05-15 13:31:07 +03:00
writer.haddock Shared.compactify: Avoid mixed lists. 2019-02-25 17:33:54 -08:00
writer.html4 HTML-based templates: Add CSS to suppress bullet on unordered task lists. 2019-12-05 09:36:34 -08:00
writer.html5 HTML-based templates: Add CSS to suppress bullet on unordered task lists. 2019-12-05 09:36:34 -08:00
writer.icml Minor template & test changes for latest dev doctemplates. 2019-10-14 23:42:29 -07:00
writer.jats Update JATS dtd (#6020) 2019-12-30 22:18:55 -08:00
writer.jira Jira writer: use jira-wiki-markup renderer 2019-12-20 17:12:46 +01:00
writer.latex Remove include of grffile from default latex template. 2019-10-29 21:44:08 -07:00
writer.man Man writer: suppress non-absolute link URLs. 2019-09-23 17:46:39 -07:00
writer.markdown Markdown writer: prefer using raw_attribute when enabled. 2019-07-18 22:31:03 -07:00
writer.mediawiki Shared.compactify: Avoid mixed lists. 2019-02-25 17:33:54 -08:00
writer.ms Ms template: Use Palatino for default font. 2019-11-16 19:32:59 -08:00
writer.muse Use doctemplates 0.3, change type of writerTemplate. 2019-07-28 19:25:45 -07:00
writer.native Shared.compactify: Avoid mixed lists. 2019-02-25 17:33:54 -08:00
writer.opendocument Use latest doclayout. 2019-10-30 21:26:21 -07:00
writer.opml Shared.compactify: Avoid mixed lists. 2019-02-25 17:33:54 -08:00
writer.org Org writer: always indent src blocks content by 2 spaces 2019-05-12 14:49:52 +02:00
writer.plain Make plain output plainer. 2019-09-22 11:33:09 -07:00
writer.rst Use new doctemplates, doclayout. 2019-08-25 14:24:31 -07:00
writer.rtf Shared.compactify: Avoid mixed lists. 2019-02-25 17:33:54 -08:00
writer.tei TEI template: improve publicationStmt. 2018-08-16 21:19:03 -07:00
writer.texinfo Shared.compactify: Avoid mixed lists. 2019-02-25 17:33:54 -08:00
writer.textile Changes to build with new doctemplates/doclayout. 2019-10-29 22:21:35 -07:00
writer.xwiki Add XWiki Support (#4167) 2019-04-02 17:27:02 -06:00
writer.zimwiki Zimwiki writer: remove automatic colon prefix before internal images (#5183) 2019-01-01 14:08:38 -08:00
writers-lang-and-dir.context ConTeXt template: add a saner default for page numbers. 2019-11-16 18:38:05 -08:00
writers-lang-and-dir.latex Keep the \author{} command even if author is not specified (#5961) 2019-12-05 10:22:31 -08:00
writers-lang-and-dir.native