Nokome Bentley
7d193b2aad
Remove extraneous, significant whitespace in JATS writer output ( #4335 )
...
This patch fixes some cases where the JATS writer was introducing
semantically significant whitespace by indenting and wrapping tags.
Note that the JATS spec has a content model for `<p>` tags of `(#PCDATA | ...`.
Any tag where `#PCDATA` children are possible should not have any
indentation. The same is true for `<th>`, `<td>`, `<term>`, `<label>`.
2018-03-05 09:44:34 -08:00
Felix Yan
475f46fa7c
Allow tasty-quickcheck 0.10 ( #4429 )
...
Tests pass with the new test tool.
2018-03-05 09:35:16 -08:00
Alexander Krotov
7da6e4390c
Muse writer: expand math before inline list normalization
2018-03-05 19:50:19 +03:00
John MacFarlane
7518e8e00e
Allow skylighting 0.7.x.
2018-03-04 12:08:11 -08:00
John MacFarlane
5e6879dbf9
Update man page and date on MANUAL.
2018-03-02 20:23:53 -08:00
John MacFarlane
4d0eb27285
Update changelog.
2018-03-02 19:36:02 -08:00
John MacFarlane
987140eadc
Revert "Commonmark reader: parse HTML as plain text if -raw_html
."
...
This reverts commit 6dd2125028
.
2018-03-02 19:35:22 -08:00
John MacFarlane
6dd2125028
Commonmark reader: parse HTML as plain text if -raw_html
.
2018-03-02 19:30:42 -08:00
Alexander Krotov
a71a1fec69
Muse reader: fix indentation requirements for footnote continuations
2018-03-03 03:33:02 +03:00
John MacFarlane
7507117f15
Make Ext_raw_html
default for commonmark format.
2018-03-02 16:30:39 -08:00
John MacFarlane
40dad9f644
Update changelog.
2018-03-02 10:59:10 -08:00
John MacFarlane
554e9b80bd
Bump version to 2.1.2.
2018-03-02 10:54:03 -08:00
John MacFarlane
5823bdf560
Use latest pandoc-citeproc.
2018-03-02 10:17:26 -08:00
John MacFarlane
adefd86cd4
LaTeX reader: Fix regression in package options including underscore.
...
Closes #4424 .
2018-03-02 09:33:18 -08:00
Alexander Krotov
991b57733c
hlint Muse reader and writer
2018-03-02 19:51:54 +03:00
Alexander Krotov
a01573692a
Muse reader: enable <literal> tags even if amuse extension is enabled
...
Amusewiki disables <literal> tags for security reasons.
If user wants similar behavior in pandoc, RawBlocks and RawInlines
can be removed or replaced with filters.
2018-03-02 12:52:39 +03:00
Alexander Krotov
64f8c5d99c
Muse reader: remove space prefix from <literal> tag contents
2018-03-02 12:50:36 +03:00
Alexander Krotov
6824d0dc2c
Muse writer: update writer.muse
2018-03-02 02:32:23 +03:00
Alexander Krotov
9dbd59a7c1
Muse writer: join strings during inline normalization
2018-03-02 01:45:01 +03:00
Alexander Krotov
177c5120a5
Muse reader: do not consume whitespace while looking for closing end tag
...
Fix for a bug caught by round-trip test.
2018-03-02 01:01:50 +03:00
Alexander Krotov
e881214bf9
Org writer: fix a typo s/prettyfy/prettify/
2018-03-02 00:35:48 +03:00
Alexander Krotov
55c4b9982c
Muse reader: convert alphabetical list markers to decimal in round-trip test
...
Alphabetical lists are an addition of Text::Amuse.
They are not present in Emacs Muse and can be ambiguous
when list starts with "i.", "c." etc.
2018-03-02 00:33:16 +03:00
Jesse Rosenthal
7d3e7a5a6d
Docx reader: Handle nested sdt tags.
...
Previously we had only unwrapped one level of sdt tags. Now we recurse
if we find them.
Closes : #4415
2018-02-28 16:32:20 -05:00
Alexander Krotov
cc34771928
Muse reader: add test for verse tag with one empty line
2018-02-28 14:43:36 +03:00
Alexander Krotov
8b1630aae0
Muse writer: change verse markup
...
Use "> " instead of <verse> tag
2018-02-28 14:42:43 +03:00
Alexander Krotov
1d57f7a641
Muse writer: remove empty strings during inline normalization
2018-02-28 14:26:11 +03:00
Alexander Krotov
a7ac590b08
Muse reader: allow <quote> and other tags to be indented
2018-02-28 12:11:56 +03:00
Alexander Krotov
83ce0a789d
Update tagsoup to 0.14.6
2018-02-28 07:00:14 +03:00
Albert Krewinkel
3560603f10
Set fixed minor version for hslua
...
The ToLuaStack instance for Set is orphaned. The PVP requires the minor
version to be fixed in this case.
2018-02-27 19:36:52 +01:00
Jesse Rosenthal
0287530a67
Powerpoint writer: use trim
from Shared
...
Instead of writing my own.
2018-02-27 11:28:15 -05:00
Jesse Rosenthal
9abcb4f201
Powerpoint writer: Use table styles
...
This will use the default table style in the reference-doc file. As a
result they will be easier when using in a template, and match the
color scheme.
2018-02-27 10:19:35 -05:00
Jesse Rosenthal
cdaa80e718
Powerpoint writer: add test for table and list syntax
...
These were never added when the tests were first created.
Output files checked in MS PowerPoint 2013 (Windows 10, VBox). No
corruption, and output as expected.
2018-02-27 09:34:24 -05:00
Jesse Rosenthal
cdbe45e8ee
Powerpoint writer: Remove empty slides
...
Make sure there are no empty slides in the pptx output. Because of the
way that slides were split, these could be accidentally produced by
comments after images.
When animations are added, there will be a way to add an empty slide
with either incremental lists or pauses.
Test outputs checked with MS PowerPoint (Office 2013, Windows 10,
VBox). Both files have expected output and are not corrupted.
2018-02-27 09:12:17 -05:00
Alexander Krotov
ab1bee58e5
Update tagsoup to 0.14.5
2018-02-27 15:02:59 +03:00
Alexander Krotov
19b4cb16f3
Update tagsoup to 0.14.4
...
Fixes #4282
2018-02-27 04:31:46 +03:00
John MacFarlane
5ea43630f2
LaTeX reader: make --trace work.
2018-02-26 15:25:28 -08:00
Albert Krewinkel
6ed7926bb4
Org reader tests: move citation tests to separate module
2018-02-26 21:18:13 +01:00
John MacFarlane
bbca6f223f
Allow exceptions 0.9.
2018-02-26 09:16:59 -08:00
John MacFarlane
6baebcbe86
Removed ghc-prof-options.
...
As of cabal 1.24, sensible defaults are used.
See
https://www.haskell.org/cabal/users-guide/developing-packages.html#pkg-field-ghc-prof-options .
2018-02-25 23:43:01 -08:00
Albert Krewinkel
b4717a6acb
doc/org.md: Add Org-mode documentation (very first draft)
2018-02-25 14:30:15 +01:00
Albert Krewinkel
66368ab330
Tests/Lua: fix tests on windows
2018-02-25 08:06:52 +01:00
Albert Krewinkel
eb16f3354f
doc/lua-filters.md: document global vars set for filters
2018-02-24 23:38:27 +01:00
Albert Krewinkel
b5bd8a9461
Lua: register script name in global variable
...
The name of the Lua script which is executed is made available in the
global Lua variable `PANDOC_SCRIPT_FILE`, both for Lua filters and
custom writers.
Closes : #4393
2018-02-24 22:43:28 +01:00
Alexander Krotov
39dd7c794b
Muse reader: allow single colon in definition list term
2018-02-24 02:38:10 +03:00
Jesse Rosenthal
6de2c0710f
Docx reader: code cleanup.
...
Make the code in `runStyleToTransform` a bit more consistent.
2018-02-23 14:51:36 -05:00
Jesse Rosenthal
3e10caad63
Docx reader: simplify custom-style reading code.
2018-02-23 14:47:52 -05:00
Jesse Rosenthal
5ada5cceac
Docx reader: Don't look up dependant run styles if +styles is enabled.
...
It makes more sense not to interpret -- otherwise using the original
document as the reference-doc would produce two of everything: the
interpreted version and the uninterpreted style version.
2018-02-23 14:35:30 -05:00
Alexander Krotov
8f8f0f8a60
Muse writer: don't indent nested definition lists
2018-02-23 22:07:53 +03:00
Jesse Rosenthal
788cb6e9a1
Docx writer: trim trailing whitespace.
2018-02-23 11:54:00 -05:00
laptop1\Andrew
aadac3c891
Docx test: adjust test for fix of bug
...
This commit adjusts the test cases for the Docx writer after the fix of #3930 .
- Adjusted test cases with inline images. The inline images now have the correct sizing, title and description.
- Modified the test case to include an image multiple times with different sizing each time.
- Tested on Windows 8.1 with Word 2007 (12.0.6705.5000) The files are not corrupted and display exactly what is expected.
2018-02-23 11:50:33 -05:00