Alexander Krotov
c24c9efd98
Muse writer: enable --wrap=preserve for all tests by default
2018-03-25 18:31:28 +03:00
Alexander Krotov
c6232d0f7d
Muse reader: require block <literal> tags to be on separate lines
2018-03-25 18:31:28 +03:00
Alexander Krotov
4a8993f9b0
Muse writer: improve span writing
...
Test more cases when span has or hasn't anchor, class and contents in different combinations.
2018-03-25 01:18:33 +03:00
Alexander Krotov
d58b961a6d
Muse writer: do not join Span's doing normalization
...
Separate spans may have different semantics, for example if spans indicate syllables in a word.
2018-03-25 00:30:05 +03:00
Alexander Krotov
6f50733691
Muse writer: don't align ordered list items
...
It leads to problems with round-trip test,
because aligned line blocks can't be read back.
2018-03-21 17:33:27 +03:00
Jesse Rosenthal
f12348cab5
Powerpoint writer: add tests for improved speaker notes.
...
Tests speaker notes appearing after (and inside of) separating blocks.
Output checked on Windows10 (archlinux virtualbox), PowerPoint
2013. Not corrupted, and output as expected.
2018-03-21 10:07:07 -04:00
Alexander Krotov
81afcdfaf8
Muse writer: escape "]" in image title
2018-03-20 15:01:53 +03:00
Alexander Krotov
268c73c873
Muse writer: escape ";" to avoid accidental comments
2018-03-20 12:16:34 +03:00
Alexander Krotov
d63bba3066
Muse writer: escape "]" brackets in URLs as "%5D"
2018-03-20 12:16:34 +03:00
John MacFarlane
0ef56657ed
Comment out Muse reader round-trip test.
...
It fails too often. Perhaps a separate test program should
be used to hunt for round-trip bugs.
2018-03-18 12:43:36 -07:00
John MacFarlane
7e389cb3db
Use NoImplicitPrelude and explicitly import Prelude.
...
This seems to be necessary if we are to use our custom Prelude
with ghci.
Closes #4464 .
2018-03-18 10:46:28 -07:00
John MacFarlane
dfa1dc164a
hlint fixes.
2018-03-17 22:00:55 -07:00
Francesco Occhipinti
ba965d1736
RST writer: filter out empty inline containers ( #4434 ).
...
There is nothing in RST that corresponds to e.g. `Emph []`, so we just filter out elements like this.
2018-03-17 20:39:26 -07:00
Francesco Occhipinti
65cc909fde
RST writer: strip whitespace within inlines, closes #4327 ( #4329 )
...
+ Whitespace is ignored at the beginning and end of emphasis, as per
<http://docutils.sourceforge.net/docs/ref/rst/restructuredtext.html#inline-markup >.
+ Export `stripLeadingTrailingSpace` from `Text.Pandoc.Writers.Shared`.
2018-03-17 19:21:27 -07:00
John MacFarlane
049dacf85f
Removed redundant import of <>
2018-03-17 17:17:47 -07:00
Jesse Rosenthal
85a65c6a51
Docx reader: add tests for nested smart tags.
2018-03-13 22:16:54 -04:00
Alexander Krotov
3ee45a7357
Muse reader: compare first rewrite to the second in round-trip test
2018-03-12 15:09:27 +03:00
Alexander Krotov
c3fbc492c8
Muse reader: require closing tag to have the same indentation as opening
2018-03-12 14:24:50 +03:00
Alexander Krotov
f0a029ac51
Muse reader: do not reparse blocks inside unclosed block tag
...
Fixes #4425
2018-03-12 13:44:27 +03:00
Alexander Krotov
19fd98e452
Muse writer: support spans with anchors
2018-03-12 01:47:20 +03:00
Alexander Krotov
9bcd090848
Muse reader: parse <class> tag
...
<class> tag is supported by Emacs Muse
2018-03-10 07:27:41 +03:00
Alexander Krotov
1884ee6083
Muse writer: replace smallcaps with emphasis before normalization
2018-03-07 20:10:19 +03:00
Alexander Krotov
ff8e59a174
Muse writer: output smallcaps as emphasis
2018-03-07 19:11:27 +03:00
Alexander Krotov
f8e255053d
Muse writer: write empty inline lists as <verbatim></verbatim>
2018-03-07 18:35:04 +03:00
Alexander Krotov
1b1b6f02d5
Muse writer: escape "-" to avoid creating bullet lists
2018-03-07 15:19:36 +03:00
Alexander Krotov
4d2bf177fc
Muse reader: do not produce empty Str element for unindented verse lines
2018-03-07 14:24:16 +03:00
Alexander Krotov
31b4387a6b
Muse writer: fix math expansion for more than one expression per paragraph
2018-03-06 12:58:20 +03:00
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
Alexander Krotov
7da6e4390c
Muse writer: expand math before inline list normalization
2018-03-05 19:50:19 +03:00
Alexander Krotov
a71a1fec69
Muse reader: fix indentation requirements for footnote continuations
2018-03-03 03:33:02 +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
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
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
Jesse Rosenthal
0287530a67
Powerpoint writer: use trim
from Shared
...
Instead of writing my own.
2018-02-27 11:28:15 -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
Albert Krewinkel
6ed7926bb4
Org reader tests: move citation tests to separate module
2018-02-26 21:18:13 +01:00
Albert Krewinkel
66368ab330
Tests/Lua: fix tests on windows
2018-02-25 08:06:52 +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
Alexander Krotov
8f8f0f8a60
Muse writer: don't indent nested definition lists
2018-02-23 22:07:53 +03:00
Alexander Krotov
2eab8f4654
Muse reader: improve verse parsing
...
Now verse marked up with ">" (in contrast to <verse> tag) can be placed
inside lists.
2018-02-23 18:02:04 +03:00
Jesse Rosenthal
ffcecfacb1
Docx reader tests: test custom style extension.
2018-02-22 13:05:44 -05:00
Albert Krewinkel
00d20ccd09
Org reader: allow changing emphasis syntax
...
The characters allowed before and after emphasis can be configured via
`#+pandoc-emphasis-pre` and `#+pandoc-emphasis-post`, respectively. This
allows to change which strings are recognized as emphasized text on a
per-document or even per-paragraph basis. The allowed characters must be
given as (Haskell) string.
#+pandoc-emphasis-pre: "-\t ('\"{"
#+pandoc-emphasis-post: "-\t\n .,:!?;'\")}["
If the argument cannot be read as a string, the default value is
restored.
Closes : #4378
2018-02-21 22:43:18 +01:00