John MacFarlane
506866ef73
Markdown writer: Use pipe tables if raw_html
disabled...
...
and `pipe_tables` enabled, even if the table has relative
width information.
Closes #3734 .
2017-08-13 10:37:24 -07:00
Albert Krewinkel
2dc3dbd68b
Use hslua >= 0.7, update Lua code
2017-08-13 14:23:54 +02:00
John MacFarlane
418bda8128
Docx writer: pass through comments.
...
We assume that comments are defined as parsed by the
docx reader:
I want <span class="comment-start" id="0" author="Jesse Rosenthal"
date="2016-05-09T16:13:00Z">I left a comment.</span>some text to
have a comment <span class="comment-end" id="0"></span>on it.
We assume also that the id attributes are unique and properly
matched between comment-start and comment-end.
Closes #2994 .
2017-08-12 22:59:53 -07:00
John MacFarlane
be9957bddc
Escape MetaString values (as added with --metadata flag).
...
Previously they would be transmitted to the template without
any escaping.
Note that `--M title='*foo*'` yields a different result from
---
title: *foo*
---
In the latter case, we have emphasis; in the former case, just
a string with literal asterisks (which will be escaped
in formats, like Markdown, that require it).
Closes #3792 .
2017-08-12 20:27:42 -07:00
John MacFarlane
0ab8670a0e
LaTeX reader: Fixed space after \figurename etc.
2017-08-12 13:40:28 -07:00
John MacFarlane
467ca2a1ad
Fixed data-dir on translations tests.
2017-08-12 10:39:25 -07:00
John MacFarlane
dbb81f513c
More translation tests.
2017-08-11 23:59:27 -07:00
John MacFarlane
9abb688f29
Added simple test for translations.
2017-08-11 23:57:28 -07:00
John MacFarlane
7892dcd353
Command tests; print stderr when a test fails.
2017-08-11 22:09:15 -07:00
John MacFarlane
83d856ee6c
Fixed writer tests not to use writerUserDataDir.
2017-08-10 23:51:42 -07:00
John MacFarlane
dee4cbc854
RST reader: implement csv-table directive.
...
Most attributes are supported, including `:file:` and `:url:`.
A (probably insufficient) test case has been added.
Closes #3533 .
2017-08-10 15:01:14 -07:00
John MacFarlane
ac18ff90b2
Org reader: use org-language attribute rather than data-org-language.
2017-08-09 09:45:17 -07:00
John MacFarlane
96933c6043
Org reader: use tag-name attribute instead of data-tag-name.
2017-08-09 09:26:57 -07:00
John MacFarlane
09b7df472d
LaTeX reader: Use label
instead of data-label
for label in caption.
...
See d441e656db
, #3639 .
2017-08-09 09:15:50 -07:00
bucklereed
db55f7c1b2
HTML reader: parse <main> like <div role=main>. ( #3791 )
...
* HTML reader: parse <main> like <div role=main>.
* <main> closes <p> and behaves like a block element generally
2017-08-09 09:10:12 -07:00
Alexander
81224a3a73
Muse writer: update test results ( #3845 )
2017-08-08 16:43:50 -07:00
Alexander
b50de96502
Muse writer: insert two blanklines between lists of the same type ( #3844 )
2017-08-08 14:05:49 -07:00
John MacFarlane
1ad9679dc9
CommonMark writer: avoid excess blank lines at end of output.
2017-08-08 14:00:13 -07:00
John MacFarlane
3752298d91
Thread options through CommonMark reader.
...
This is more efficient than doing AST traversals for
emojis and hard breaks.
Also make behavior sensitive to `raw_html` extension.
2017-08-08 13:55:19 -07:00
John MacFarlane
b6f7c4930b
CommonMark writer: support hard_line_breaks
, smart
.
...
Add tests.
2017-08-08 13:18:27 -07:00
John MacFarlane
2c0e989f9d
Markdown reader: fixed spurious parsing as citation as reference def.
...
We now disallow reference keys starting with `@` if the
`citations` extension is enabled. Closes #3840 .
2017-08-07 21:00:57 -07:00
John MacFarlane
c806ef1b15
LaTeX reader: Support simple \def
macros.
...
Note that we still don't support macros with fancy parameter
delimiters, like
\def\foo#1..#2{...}
2017-08-07 16:06:19 -07:00
John MacFarlane
9e6b9cdc5f
LaTeX reader: Support \let
.
...
Also, fix regular macros so they're expanded at the
point of use, and NOT also the point of definition.
`\let` macros, by contrast, are expanded at the
point of definition. Added an `ExpansionPoint`
field to `Macro` to track this difference.
2017-08-07 13:38:15 -07:00
Alexander
1b5bfced55
Muse reader: debug indented paragraph support ( #3839 )
...
Take only first line indentation into account
and do not start new paragraph on indentation change.
2017-08-06 21:43:59 -07:00
Jesse Rosenthal
a67a96b932
Docx reader: Add tests for avoiding zero-level header.
2017-08-06 19:36:25 -07:00
Alexander
8164a005c0
Muse reader: debug list and list item separation rules ( #3837 )
2017-08-06 13:19:59 -07:00
bucklereed
685788cd4b
LaTeX reader: plainbreak, fancybreak et al from the memoir class ( #3833 )
2017-08-05 10:03:31 -07:00
Alexander Krotov
7a3a8790de
Muse reader: do not allow headers in blockquotes ( #3831 )
2017-08-03 15:41:45 -07:00
John MacFarlane
ced834076d
DokuWiki reader: better handling for code block in list item.
...
Closes #3824 .
2017-08-02 10:33:08 -07:00
John MacFarlane
b8afec05e0
Markdown writer: better escaping of <
and >
.
...
If `all_symbols_escapable` is set, we backslash escape these.
Otherwise we use entities as before.
2017-07-30 13:45:22 -07:00
John MacFarlane
7f9e950d8d
Class: Removed unnecessary withMedia, improved haddocks.
2017-07-30 07:43:55 -07:00
John MacFarlane
303d10d07b
Small tweak in test (add --wrap=preserve).
2017-07-26 12:55:15 +02:00
John MacFarlane
e0ab09611a
HTML writer: render raw inline environments when --mathjax used.
...
We previously did this only with raw blocks, on the assumption
that math environments would always be raw blocks. This has changed
since we now parse them as inline environments.
Closes #3816 .
2017-07-26 12:50:36 +02:00
John MacFarlane
d441e656db
HTML writer: insert data- in front of unsupported attributes.
...
Thus, a span with attribute 'foo' gets written to HTML5
with 'data-foo', so it is valid HTML5.
HTML4 is not affected.
This will allow us to use custom attributes in pandoc without
producing invalid HTML.
2017-07-25 13:13:24 +02:00
John MacFarlane
2b039acb4e
Merge branch 'textcolor-support' of https://github.com/schrieveslaach/pandoc into schrieveslaach-textcolor-support
2017-07-25 11:42:10 +02:00
John MacFarlane
329b61ff5c
LaTeX reader: support etoolbox's ifstrequal.
2017-07-24 11:20:59 +02:00
John MacFarlane
439ffc2e7f
Added a test case with markdown-latex_macros
.
2017-07-24 00:02:55 +02:00
John MacFarlane
be14e2b501
LaTeX reader: some improvements in macro parsing.
...
Fixed applyMacros so that it operates on the whole
string, not just the first token!
Don't remove macro definitions from the output,
even if Ext_latex_macros is set, so that macros will
be applied. Since they're only applied to math in
Markdown, removing the macros can have bad effects.
Even for math macros, keeping them should be harmless.
2017-07-24 00:02:55 +02:00
Mauro Bieg
7d9b782f73
HTML Reader: parse figure and figcaption ( #3813 )
2017-07-22 19:22:56 +02:00
rlpowell
2ae75e23dd
Added TikiWiki reader ( #3800 )
...
Added TikiWiki reader, including tests and documentation.
It's probably not *complete*, but it works pretty well, handles all
the basics (and some not-so-basics).
2017-07-21 10:09:54 +02:00
Alexander Krotov
335a1c7f48
Muse reader: fix reading of lists inside tags ( #3802 )
2017-07-21 10:04:13 +02:00
John MacFarlane
7191fe1f29
LaTeX reader: handle optional args in raw \titleformat
.
...
Closes #3804 .
2017-07-21 09:28:36 +02:00
John MacFarlane
56f63af3f6
LaTeX reader: fixed regression with starred environment names.
...
Closes #3803 .
2017-07-19 17:30:22 +02:00
John MacFarlane
4e8f7a1796
Fix docx writer test for ghc 8.2.1.
...
Workaround for different behavior of Data.Unique in different ghc
versions.
2017-07-15 11:39:01 +02:00
John MacFarlane
3871a73e0f
Rearrange docx writer roundtrip test.
...
I'm hoping this gives reproducible results on ghc 8.2.1.
2017-07-15 09:14:17 +02:00
John MacFarlane
4e9e1bae7c
Refactored compareOutput in docx writer test
2017-07-14 23:39:33 +02:00
schrieveslaach
911b63dfc3
Add LaTeX xspace support ( #3797 )
2017-07-13 20:56:59 +02:00
Marc Schreiber
f93d7d06f6
Merge branch 'master' of https://github.com/jgm/pandoc into textcolor-support
2017-07-13 11:51:40 +02:00
Yuchen Pei
8b502dd50f
Fixed #3760 . ( #3784 )
...
Using the same solution as in the LaTeX reader:
equation -> displaymath
align -> displaymath \begin{aligned} ... \end{aligned}
etc..
2017-07-12 17:19:49 +02:00
Alexander Krotov
de117fbd9e
Muse writer: indent lists inside <quote> with at least one space ( #3795 )
2017-07-12 17:16:02 +02:00