aboutsummaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
2018-01-02Docx reader: Allow for insertion/deletion of paragraphs.Jesse Rosenthal1-4/+44
If the paragraph has a deleted or inserted paragraph break (depending on the track-changes setting) we hold onto it until the next paragraph. This takes care of accept and reject. For this we introduce a new state which holds the ils from the previous para if necessary. For `--track-changes=all`, we add an empty span with class `paragraph-insertion`/`paragraph-deletion` at the end of the paragraph prior to the break to be inserted or deleted. Closes #3927.
2018-01-02Docx reader: Parse track changes info into paragraph props.Jesse Rosenthal1-15/+27
This will tell us whether a paragraph break was inserted or deleted. We add a generalized track-changes parsing function, and use it in `elemToParPart` as well.
2018-01-02Docx reader: Extract tracked changes type from parpart.Jesse Rosenthal2-6/+19
We're going to want to use it elsewhere as well, in upcoming tracking of paragraph insertion/deletion.
2018-01-02firstRow table definition compatibility for Word 2016Sebastian Talmon1-1/+1
Word 2016 seems to use a default value of "1" for table headers, if there is no firstRow definition (although a default value of 0 is documented), so all tables get the first Row formatted as header. Setting the parameter to 0 if the table has no header row fixes this for Word 2016
2018-01-01Docx writer: Fix custom styles with spaces in the name.John MacFarlane1-1/+1
Custom styles with spaces worked for divs but not for spans. This commit fixes the problem. Closes #3290.
2018-01-01Revert "Travis: try running tests single-threaded."John MacFarlane1-2/+2
This reverts commit 84a4d3685cda5df3e69599afbbde8a8ec556a800.
2018-01-01Travis: try running tests single-threaded.John MacFarlane1-2/+2
This should ensure continuous output, so we don't have 10m blank spots which cause travis to kill.
2018-01-01Markdown reader: rewrite inlinesInBalancedBrackets.John MacFarlane1-19/+13
The rewrite is much more direct, avoiding parseFromString. And it performs significantly better; unfortunately, parsing time still increases exponentially. See #1735.
2018-01-02Removed redundant subtitle in titlestalmon1-3/+1
subtitle is allready used to create a subtitle for the document appending the subtitle to the main title leads to double subtitle in the document
2018-01-01Lua.Module.Utils: make stringify work on MetaValues.John MacFarlane1-1/+4
I'm sure this was intended in the first place, but currently only Meta is supported.
2017-12-31Docx reader: minor cleanup.Jesse Rosenthal1-1/+2
2017-12-31Docx reader: tests for overlapping targets (anchor spans).Jesse Rosenthal3-0/+7
2017-12-31Docx Reader: Combine adjacent anchors.Jesse Rosenthal2-22/+49
There isn't any reason to have numberous anchors in the same place, since we can't maintain docx's non-nesting overlapping. So we reduce to a single anchor, and have all links pointing to one of the overlapping anchors point to that one. This changes the behavior from commit e90c714c7 slightly (use the first anchor instead of the last) so we change the expected test result. Note that because this produces a state that has to be set after every invocation of `parPartToInlines`, we make the main function into a primed subfunction `parPartToInlines'`, and make `parPartToInlines` a wrapper around that.
2017-12-30Markdown reader: Avoid parsing raw tex unless \ + letter seen.John MacFarlane1-1/+2
This seems to help with the performance problem, #4216.
2017-12-30LaTeX reader: Simplified a check for raw tex command.John MacFarlane1-2/+2
2017-12-30Docx reader: tests for removing unused anchors.Jesse Rosenthal3-0/+7
2017-12-30Docx reader: Remove unused anchors.Jesse Rosenthal1-5/+27
Docx produces a lot of anchors with nothing pointing to them -- we now remove these to produce cleaner output. Note that this has to occur at the end of the process because it has to follow link/anchor rewriting. Closes #3679.
2017-12-30Improve benchmarks.John MacFarlane1-40/+43
Previously we weren't setting the default extensions properly, so e.g. 'markdown' wasn't being tested with pandoc markdown extensions.
2017-12-31Muse reader: automatically translate #cover into #cover-imageAlexander Krotov1-1/+3
Amusewiki uses #cover directive to specify cover image.
2017-12-30Improved benchmark argument parsing.John MacFarlane1-10/+5
You can now say 'make bench BENCHARGS="markdown latex reader"' and both the markdown and latex readers will be benchmarked.
2017-12-30Fixed small bug in README generation.John MacFarlane2-7/+5
2017-12-30Use gfm for generated README.md.John MacFarlane2-144/+127
2017-12-30Muse reader: enable round trip testAlexander Krotov1-10/+9
Closes #4107
2017-12-30Muse writer: don't escape URIs from ASTAlexander Krotov1-1/+1
2017-12-30Docx reader: Read multiple children of w:sdtContents`Jesse Rosenthal2-6/+15
Previously we had only read the first child of an sdtContents tag. Now we replace sdt with all children of the sdtContents tag. This changes the expected test result of our nested_anchors test, since now we read docx's generated TOCs.
2017-12-29Update RELEASE-CHECKLISTJohn MacFarlane1-33/+17
2017-12-29Generate README.md from template and MANUAL.txt.John MacFarlane4-120/+229
`make README.md` will generate the README.md after changes to MANUAL.txt have been made.
2017-12-29Small MANUAL tweaks.John MacFarlane1-4/+9
2017-12-29Merge branch 'master' of github.com:jgm/pandocJohn MacFarlane1-119/+133
2017-12-29Merge pull request #4214 from mb21/manualJohn MacFarlane1-119/+133
MANUAL.txt simplify and add more structure
2017-12-29Merge branch 'master' of github.com:jgm/pandocJohn MacFarlane8-100/+168
2017-12-29Powerpoint Writer tests: Add quickcheck tests for content types.Jesse Rosenthal2-15/+79
We want to make sure we always have an override for each xml file in the content types file.
2017-12-29MANUAL.txt move fenced_divs down to bracketed_spansmb211-42/+49
2017-12-29Powerpoint writer test: more slide number testsJesse Rosenthal1-4/+9
Add test for custom slide-level header, and notes slides.
2017-12-29MANUAL.txt simplify and add more structuremb211-77/+84
2017-12-29Lua filters: stop exporting pushPandocModuleAlbert Krewinkel1-6/+0
The function `pushPandocModule` was exported by Text.Pandoc.Lua to enable simpler testing. The introduction of `runPandocLua` renders direct use of this function obsolete. (API change)
2017-12-29Update tool which generates lua module docsAlbert Krewinkel2-9/+9
All "helper functions" are not part of the Lua code for module pandoc, but are added in Haskell. The respective documentation section must therefore be excluded from automatic regeneration.
2017-12-29data/pandoc.lua: drop function pandoc.global_filterAlbert Krewinkel5-68/+9
The function `global_filter` was used internally to get the implicitly defined global filter. It was of little value to end-users, but caused unnecessary code duplication in pandoc. The function has hence been dropped. Internally, the global filter is now received by interpreting the global table as lua filter. This is a Lua API change.
2017-12-29doc/lua-filters.md: re-add docs for helper functionsAlbert Krewinkel1-0/+75
These docs are dropped, as the functions are no longer part of data/pandoc.lua, from which this section is generated. This is only a temporary fix: a proper fix will have to re-think how this section is updated.
2017-12-29data/pandoc.lua: fix documentation for global_filterAlbert Krewinkel2-20/+9
2017-12-28Update changelog.John MacFarlane1-5/+5
2017-12-28Bump pandoc-citeproc to 0.12.2.2.John MacFarlane2-2/+2
2017-12-28Update man page.John MacFarlane1-1/+4
2017-12-28Changelog typo.John MacFarlane1-1/+1
2017-12-28Update lua-filters.md and the tool that generates it.John MacFarlane2-182/+108
2017-12-28Fixed some doc comments in data/pandoc.lua.John MacFarlane1-10/+10
2017-12-28Remove redundant import.John MacFarlane1-1/+0
2017-12-28Merge pull request #4170 from oltolm/opendocumentJohn MacFarlane3-9/+51
improve formatting of formulas in OpenDocument
2017-12-28Update changelog.John MacFarlane1-0/+12
2017-12-28Revised benchmark so it doesn't use FileTree constructor.John MacFarlane1-4/+5