Albert Krewinkel
2e63e2f2bc
Lua filter docs: document fields of inline objects
2018-10-11 20:51:54 +02:00
John MacFarlane
f5c64c3060
HTML reader: fix htmlTag and isInlineTag to accept processing instructions.
...
Fixes regression #3123 (since 2.0). Added regression test.
2018-10-11 09:58:25 -07:00
Alexander Krotov
3e04c2f3af
Muse reader internals: don't use "choice" with static list
2018-10-11 16:43:31 +03:00
Alexander Krotov
4494761640
Muse reader: use indentWith to parse indentation
2018-10-11 16:41:12 +03:00
Alexander Krotov
a9c69b20c5
Muse reader: move museInPara from state to environment
2018-10-11 16:39:03 +03:00
Evan Pratten
93a6d2945f
INSTALL.md: Add chromeos install instructions ( #4958 )
2018-10-10 17:23:30 -07:00
Alexander Krotov
2aa417a2e5
Pandoc.Parsing: rewrite nonspaceChar using noneOf
2018-10-10 18:53:01 +03:00
Alexander Krotov
8d959179f9
Vimwiki reader: get rid of F, runF and stateMeta' in favor of stateMeta
2018-10-10 12:26:29 +03:00
Alexander Krotov
0a7650f87b
Muse reader internals: merge link and explicit link parsers into one function
2018-10-10 11:35:00 +03:00
Alexander Krotov
6b8fd99dbd
Test that Muse reader can parse code with = sign inside
...
(fixed by previous commit)
2018-10-10 03:27:36 +03:00
Alexander Krotov
36c763a647
Muse reader: rewrite code parser in applicative style
2018-10-10 03:23:08 +03:00
Alexander Krotov
d3b2161bd1
Muse reader: fix parsing of empty cells
2018-10-10 01:48:58 +03:00
Alexander Krotov
7556dc9e49
Reimplement mapLeft using Bifunctor.first
2018-10-10 01:26:50 +03:00
Alexander Krotov
2537c338fa
Muse reader: simplify table parsing
2018-10-10 01:19:52 +03:00
John MacFarlane
259c356435
Added docx/docPropos/custom.xml to cabal data-files.
2018-10-09 11:15:07 -07:00
John MacFarlane
30033f417f
Docx writer: added framework for custom properties.
...
So far, we don't actually write any custom properties,
but we have the infrastructure to add this.
See #3034 .
2018-10-09 10:38:50 -07:00
Alexander Krotov
4d9ccb163e
Get rid of mapLeft in Muse reader
2018-10-09 18:26:50 +03:00
Alexander Krotov
ca1624daa2
hlint Muse writer
2018-10-09 16:24:06 +03:00
Alexander Krotov
ca4ee9940c
Muse reader: rewrite parseHtmlContent, verseTag and lineBlock in applicative style
2018-10-09 16:14:37 +03:00
Alexander Krotov
9ee00fc0f8
Get rid of unnecessary bind "res"
2018-10-09 11:58:59 +03:00
John MacFarlane
58eb78c437
Fixed tests for new skylighting.
2018-10-08 23:16:50 -07:00
John MacFarlane
2e9a8d207b
Require skylighting 0.7.4.
...
Closes #4920 .
2018-10-08 22:48:13 -07:00
John MacFarlane
6d87af8882
LaTeX writer with --listings
: don't pass through org-babel attributes.
...
So far: just, tangle, exports, results which are used by org mode.
It might be better to use a whitelist of legal listings attributes, but
there are a large number, and these may change.
Closes #4889 .
2018-10-08 21:45:39 -07:00
John MacFarlane
f8879ee0a1
Add helpful suggestion to missing title warning.
...
Tell users what to add to the command line to avoid the warning.
Closes #4909 .
2018-10-08 21:33:25 -07:00
John MacFarlane
a92e43575f
LaTeX writer: with --biblatex
, use \autocite
when possible.
...
`\autocites{a1}{a2}{a3}` will not collapse the entries.
So, if we don't have prefixes and suffixes, we use instead
`\autocite{a1;a2;a3}`.
Closes #4960 .
2018-10-08 20:47:09 -07:00
John MacFarlane
b60c64d06e
ODT writer: improve metadata.
...
- Author, date added to metadata.
- Remaining metadata properties (besides author, date, title, lang)
are added as meta:user-defined tags.
2018-10-08 14:33:27 -07:00
John MacFarlane
b02c25b2ca
Docx writer: handle tables in table cells.
...
Although this is not documented in the spec, some versions of
Word require a 'w:p' element inside every table cell. Thus, we
add one when the contents of a cell do not already include one
(e.g. when a table cell contains a table).
Closes #4953 .
2018-10-07 18:57:25 -07:00
John MacFarlane
145710c4c3
RST reader: don't allow single-dash separator in headerless table.
...
Closes #4382 .
2018-10-07 12:37:08 -07:00
John MacFarlane
b806bff5b4
LaTeX reader: fix bugs omitting raw tex.
...
The default is `-raw_tex`, so no raw tex should result
unless we explicitly say `+raw_tex`. Previously some
raw commands did make it through.
Closes #4527 .
2018-10-07 12:21:43 -07:00
John MacFarlane
9b481c8787
INSTALL: note about TinyTeX.
2018-10-07 12:21:28 -07:00
John MacFarlane
08fef6b210
RST reader: pass through fields in unknown directives as div attributes.
...
This commit also adds support for `class` and `name` attributes to
directives in general.
Closes #4715 .
2018-10-07 11:44:11 -07:00
John MacFarlane
f66a6704f9
Makefile - make .msi download targets more robust.
...
Now they should be insensitive to changes in the order
of the builds on appveyor.
2018-10-07 11:16:32 -07:00
John MacFarlane
fd9d08f9d6
Revert export of hasSimpleCells from T.P.Writers.Shared.
...
This wasn't necessary.
2018-10-07 10:20:14 -07:00
John MacFarlane
bd8a66394b
RST writer: use simple tables when possible.
...
Closes #4750 .
Text.Pandoc.Writers.Shared now exports hasSimpleCells [API change].
2018-10-06 22:33:24 -07:00
Albert Krewinkel
36a6a40ef7
Documentation: add draft for Lua objects reference
2018-10-06 21:48:25 +02:00
Albert Krewinkel
05efa5a0e6
Lua filter doc: fix description of Code.text
2018-10-06 21:48:24 +02:00
Alexander Krotov
73afce113b
Moved Haddock comment in Muse reader
2018-10-06 15:21:24 +03:00
Brian Leung
e257b54124
Org reader: fix behavior for successive calls of #+EXCLUDE_TAGS
. ( #4951 )
...
Calling `#+EXCLUDE_TAGS` multiple times should preserve the status of
the previously declared tags.
2018-10-05 22:21:20 -07:00
quasicomputational
6207bdeb68
CommonMark writer: add plain text fallbacks. ( #4531 )
...
Previously, the writer would unconditionally emit HTMLish output for
subscripts, superscripts, strikeouts (if the strikeout extension is
disabled) and small caps, even with raw_html disabled.
Now there are plain-text (and, where possible, fancy Unicode)
fallbacks for all of these corresponding (mostly) to the Markdown
fallbacks, and the HTMLish output is only used when raw_html is
enabled.
This commit adds exported functions `toSuperscript` and
`toSubscript` to `Text.Pandoc.Writers.Shared`. [API change]
Closes #4528 .
2018-10-05 21:33:14 -07:00
Brian Leung
a26b3a2d6a
Org reader: Add partial support for #+EXCLUDE_TAGS
option. ( #4950 )
...
Closes #4284 .
Headers with the corresponding tags should not appear in the output.
If one or more of the specified tags contains a non-tag character
like `+`, Org-mode will not treat that as a valid tag, but will
nonetheless continue scanning for valid tags. That behavior is not
replicated in this patch; entering `cat+dog` as one of the entries in
`#+EXCLUDE_TAGS` and running the file through Pandoc will cause the
parser to fail and result in the only excluded tag being the default, `noexport`.
2018-10-05 14:28:17 -07:00
John MacFarlane
e4ca51c2a7
Fixed haddock error in Muse reader.
2018-10-05 12:32:48 -07:00
Alexander Krotov
9b715d0cf2
Muse reader: remove redundant bracket
2018-10-05 20:02:45 +03:00
Nils Carlson
6304720d8d
OpenDocument writer: Implement table caption numbering ( #4949 )
...
Implement table caption numbering with a format
"Table 1: <caption>".
Translations are enabled and numbering is consecutive for
captioned tables, uncaptioned tables are not enumerated.
Captioned figures are now also numbered consecutively
and uncaptioned figures are not enumerated.
2018-10-05 09:58:23 -07:00
Alexander Krotov
90a4d693ef
Muse reader: move museInLink state into ReaderT
2018-10-05 19:41:25 +03:00
Alexander Krotov
37cc977b12
Muse reader: use getIndent more for code cleanup
2018-10-05 19:14:13 +03:00
Alexander Krotov
131dcff71d
Muse reader: use getIndent in parseHtmlContent
2018-10-05 18:47:45 +03:00
Alexander Krotov
659cce8442
Muse reader: make bulletListUntil similar to definitionListUntil
2018-10-05 18:31:48 +03:00
Alexander Krotov
7cfce586f6
Muse reader: reduce duplication by introducing getIndent
2018-10-05 18:27:05 +03:00
Alexander Krotov
abd770c691
Muse reader internals: simplify parseMuse
2018-10-05 16:33:33 +03:00
Alexander Krotov
0ce7183c81
Muse reader: get rid of TagSoup import
2018-10-05 15:57:03 +03:00