aboutsummaryrefslogtreecommitdiff
path: root/pandoc.cabal
AgeCommit message (Collapse)AuthorFilesLines
2021-03-04Bump version to 2.12John MacFarlane1-1/+1
2021-03-03Revert "Add T.P.Readers.LaTeX.Include."John MacFarlane1-1/+0
This reverts commit b569b0226d4bd5e0699077089d54fb03d4394b7d. Memory usage improvement in compilation wasn't very significant.
2021-03-03Add T.P.Readers.LaTeX.Include.John MacFarlane1-0/+1
2021-03-03Remove T.P.Readers.LaTeX.Accent.John MacFarlane1-1/+0
Incorporate accentCommands into T.P.Readers.LaTeX.Inline.
2021-03-03Split out T.P.Readers.LaTeX.Inline.John MacFarlane1-5/+6
2021-03-02Split out T.P.Writers.LaTeX.Util.John MacFarlane1-0/+1
2021-03-02Split out T.P.Writers.LaTeX.Citation.John MacFarlane1-0/+1
2021-03-02Split out T.P.Writers.LaTeX.Lang.John MacFarlane1-0/+1
2021-03-02Split up T.P.Writers.Markdown...John MacFarlane1-0/+2
with T.P.Writers.Markdown.Types and T.P.Writers.Markdown.Inline. The module was difficult to compile on low-memory system.s
2021-03-01Make T.P.Readers.LaTeX.Types an unexported module.John MacFarlane1-1/+1
[API change] This is really an implementation detail that shouldn't be exposed in the public API.
2021-03-01Factor out T.P.Readers.LaTeX.Macro.John MacFarlane1-0/+1
2021-02-28Factor out T.P.Readers.LaTeX.Math.John MacFarlane1-0/+1
2021-02-28trypandoc: add 2 second timeout.John MacFarlane1-1/+1
2021-02-28Factor out T.P.Readers.LaTeX.Citation.John MacFarlane1-0/+1
2021-02-27Factor out T.P.Readers.LaTeX.Table.John MacFarlane1-0/+1
2021-02-27Split off T.P.Readers.LaTeX.Accent.John MacFarlane1-0/+1
To help reduce memory demands compiling the main LaTeX reader.
2021-02-27Use skylighting 0.10.4.John MacFarlane1-2/+2
This version of skylighting uses xml-conduit rather than hxt. This speeds up parsing of XML syntax definitions fourfold, and removes four packages from pandoc's dependency graph: hxt-charproperties hxt-unicode hxt-regex-xmlschema hxt
2021-02-22Use latest skylighting.John MacFarlane1-2/+2
2021-02-22Remove weigh-pandoc.John MacFarlane1-8/+0
It's not really useful any more, now that our regular benchmarks include data on allocation.
2021-02-18'make bench': Create csv files for comparison.John MacFarlane1-1/+1
2021-02-18Allow base64-bytestring-1.2.*Dmitrii Kovanikov1-2/+2
2021-02-16Revert "Add T.P.XML.Light.Cursor."John MacFarlane1-1/+0
This reverts commit d8fc4971868104274881570ce9bc3d9edf0d2506.
2021-02-16Add T.P.XML.Light.Cursor.John MacFarlane1-0/+1
2021-02-16Split up T.P.XML.Light into submodules.John MacFarlane1-0/+3
2021-02-16Rename Text.Pandoc.XMLParser -> Text.Pandoc.XML.Light...John MacFarlane1-1/+1
..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 8ca191604dcd13af27c11d2da225da646ebce6fc (Feb 8) B = as of 8ca191604dcd13af27c11d2da225da646ebce6fc (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-14Allow tasty 1.4.*Albert Krewinkel1-1/+1
2021-02-12Jira: require jira-wiki-markup 1.3.3Albert Krewinkel1-1/+1
* Modified the Doc parser to skip leading blank lines. This fixes parsing of documents which start with multiple blank lines. (#7095) * Prevent URLs within link aliases to be treated as autolinks. (#6944) Fixes: #7095 Fixes: #6944
2021-02-10Add new unexported module T.P.XMLParser.John MacFarlane1-0/+2
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-07Avoid unnecessary use of NoImplicitPrelude pragma (#7089)Albert Krewinkel1-1/+1
2021-02-07pandoc.cabal: use common stanza to reduce duplication (#7086)Albert Krewinkel1-124/+45
2021-02-02Use hslua-module-path 0.1.0Albert Krewinkel1-1/+1
2021-02-02Lua: add module "pandoc.path"Albert Krewinkel1-0/+1
The module allows to work with file paths in a convenient and platform-independent manner. Closes: #6001 Closes: #6565
2021-02-01BibTeX writer: use doclayout and doctemplate.John MacFarlane1-0/+2
This change allows bibtex/biblatex output to wrap as other formats do, depending on the settings of `--wrap` and `--columns`. It also introduces default templates for bibtex and biblatex, which allow for using the variables `header-include`, `include-before` or `include-after` (or alternatively the command line options `--include-in-header`, `--include-before-body`, `--include-after-body`) to insert content into the generated bibtex/biblatex. This change requires a change in the return type of the unexported `T.P.Citeproc.writeBibTeXString` from `Text` to `Doc Text`. Closes #7068.
2021-02-01BibTeX writer fixes. Closes #7067.John MacFarlane1-1/+1
+ Require citeproc 0.3.0.7, which correctly titlecases when titles contain non-ASCII characters. + Correctly handle 'pages' (= 'page' in CSL). + Correctly handle BibLaTeX 'langid' (= 'language' in CSL). + In BibTeX output, protect foreign titles since there's no language field.
2021-01-30Require citeproc 0.3.0.6.John MacFarlane1-1/+1
2021-01-30Use tasty-bench instead of criterion for benchmarks.John MacFarlane1-1/+2
It is much lighter-weight.
2021-01-22Use citeproc 0.3.0.5.John MacFarlane1-1/+1
2021-01-22Merge pull request #7042 from tarleb/jats-element-citationsJohn MacFarlane1-0/+1
JATS writer: use element citations
2021-01-22JATS writer: allow to use element-citationAlbert Krewinkel1-0/+1
2021-01-22Add biblatex, bibtex as output formats (closes #7040).John MacFarlane1-0/+1
* `biblatex` and `bibtex` are now supported as output as well as input formats. * New module Text.Pandoc.Writers.BibTeX, exporting writeBibTeX and writeBibLaTeX. [API change] * New unexported function `writeBibtexString` in Text.Pandoc.Citeproc.BibTeX.
2021-01-15Use citeproc >= 0.3.0.4.John MacFarlane1-1/+1
2021-01-11Use commonmark 0.1.1.3.John MacFarlane1-1/+1
2021-01-10JATS writer: fix citations (#7018)Albert Krewinkel1-2/+0
* JATS writer: keep code lines at 80 chars or below * JATS writer: fix citations
2021-01-10Bump to 2.11.4.John MacFarlane1-1/+1
API change: export getReferences from T.P.Citeproc.
2021-01-08Update copyright notices for 2021 (#7012)Albert Krewinkel1-1/+1
2021-01-05Implement defaults file inheritance (#6924)David Martschenko1-0/+7
Allow defaults files to inherit options from other defaults files by specifying them with the following syntax: `defaults: [list of defaults files or single defaults file]`.
2020-12-29Bump to 2.11.3.2, update changelog and man pageJohn MacFarlane1-1/+1
2020-12-29Use citeproc 0.3.0.3.John MacFarlane1-1/+1
Fixes an issue in author-only citations when both an author and translator are present.
2020-12-28Update test for new citeproc and require it in cabal.John MacFarlane1-1/+1
2020-12-27Require texmath 0.12.1.John MacFarlane1-1/+1