Alexander Krotov
579f4223bf
Muse reader: move F out of MuseTableElement definition
2018-04-08 11:20:15 +03:00
Alexander Krotov
2bc5fb6d83
Muse reader: document implementation
2018-04-08 06:51:10 +03:00
Alexander Krotov
4cb053ce3d
Muse reader: replace pattern matching with "when"
2018-04-07 19:06:40 +03:00
Alexander Krotov
828bfc749d
Muse reader: don't return link title from linkText parser
...
Title is always empty in Muse anyway.
2018-04-07 18:45:30 +03:00
Alexander Krotov
ebbd441d06
Muse reader: add support for <biblio> and <play> tags
2018-04-07 18:31:06 +03:00
Alexander Krotov
eecf609792
Muse reader: replace returnF with return . return
2018-04-07 18:05:48 +03:00
Alexander Krotov
f9aa2eb353
FB2 writer: output links inline instead of producing notes
...
Previously all links were turned into footnotes with unclickable URLs inside.
2018-04-07 17:12:55 +03:00
Jesse Rosenthal
394f4536e1
Powerpoint writer: Handle Quoted Inlines
...
Closes : #4532
2018-04-05 14:03:15 -04:00
John MacFarlane
7e99178a09
Changes to tests to accommodate changes in pandoc-types.
...
In https://github.com/jgm/pandoc-types/pull/36 we changed
the table builder to pad cells. This commit changes tests
(and two readers) to accord with this behavior.
2018-04-05 10:14:06 -07:00
John MacFarlane
26fdd40370
Added test-framework to stack.yaml deps.
2018-04-05 10:14:06 -07:00
John MacFarlane
d77e8f45c9
LaTEX reader: properly resolve section numbers with \ref and chapters.
...
Closes #4529 .
2018-04-05 10:14:06 -07:00
Alexander Krotov
f224567d52
FB2 writer: represent HorizontalRule as empty line
...
HorizontalRule corresponds to <hr> element in the default output
format, HTML. Current HTML standard defines <hr> element as
"paragraph-level thematic break". In typography it is often
represented by extra space or centered asterism ("⁂"), but since
FB2 does not support text centering, empty line (similar to extra space)
is the only solution.
Line breaks, on the other hand, don't generate <empty-line />
anymore. Previously line breaks generated <empty-line /> element
inside paragraph, which is not allowed. So, this commit addresses
issue #2424 ("FB2 produced by pandoc doesn't validate").
FB2 does not have a way to represent line breaks inside paragraphs.
They are replaced with LF character, which is not rendered by
FB2 readers, but at least preserves some information.
2018-04-05 19:53:36 +03:00
Alexander Krotov
87dda2109d
Muse writer: escape horizontal rule only if at the beginning of the line
2018-04-05 19:49:09 +03:00
Alexander Krotov
16104881b3
Muse writer: simplify escaping in inlineToMuse Image{}
2018-04-05 19:49:09 +03:00
quasicomputational
13538ce6eb
CommonMark writer: correctly ignore LaTeX raw blocks when not raw_tex ( #4533 )
...
Issue #4527 .
2018-04-05 08:53:42 -07:00
Alexander Krotov
ff3ed5c9f8
FB2 writer: allow emphasis and notes in titles
...
Only <p> and <empty-line /> are allowed in titles,
but <p> has the same type as an ordinary paragraphs.
Therefore, there is no need to remove emphasis from titles.
Also, don't intersperse paragraph with empty lines.
2018-04-04 14:22:34 +03:00
Alexander Krotov
2388be6482
Muse reader: code cleanup
2018-04-03 18:15:48 +03:00
Alexander Krotov
d6b8d7feb8
Muse reader: rewrite museOrderedListMarker without "do"
2018-04-03 16:09:12 +03:00
Alexander Krotov
51e8a79023
Muse reader: refactor parseAnchor
2018-04-03 15:47:23 +03:00
Alexander Krotov
7de6f085af
Muse reader: rewrite parseDirectiveKey without do
2018-04-03 15:47:23 +03:00
Alexander Krotov
8837af879a
Muse writer: rewrite noteToMuse without do
2018-04-03 15:47:23 +03:00
John MacFarlane
362045afa0
Fix typo.
2018-04-02 09:49:12 -07:00
Marc Schreiber
16523ea3d1
LaTeX reader: parse sloppypar environment ( #4517 )
2018-04-02 09:33:29 -07:00
Alexander Krotov
2380845206
Muse reader: add <math> tag support
2018-04-02 17:19:26 +03:00
Alexander Krotov
dfbae03810
hlint Muse writer
2018-04-02 16:20:35 +03:00
Alexander Krotov
ca78d93b40
Muse writer: place header IDs before header
...
See https://github.com/melmothx/text-amuse/issues/39
2018-04-02 15:58:37 +03:00
Alexander Krotov
aca4137c40
Muse writer: only escape brackets when necessary
...
It includes cases when they can be mistaken for footnotes
and links, as well as inside link description.
2018-04-01 19:39:18 +03:00
Alexander Krotov
bdb8424697
Muse writer: do not escape list markers unless preceded by space
2018-03-31 23:40:31 +03:00
John MacFarlane
b9602766d8
Textile reader: fixed tables with no body rows.
...
Previously these raised an exception.
Closes #4513 .
2018-03-30 14:56:36 -07:00
Jesse Rosenthal
d0dc0c353e
Powerpoint writer: code cleanup
...
Since we're using mapM_ instead of mapM, we can get rid of the return
statement. We also don't need the `unless` statement anymore.
2018-03-30 13:53:04 -04:00
John MacFarlane
f03ea3ff87
Set default extensions for "beamer" same as "latex".
2018-03-30 09:46:16 -07:00
John MacFarlane
c997f112b7
EPUB writer: add epub:type="footnotes" to notes section in EPUB3.
...
Closes #4489 .
2018-03-30 09:38:49 -07:00
Étienne BERSAC
7f97b04862
Add -V beameroption variable ( #4359 )
...
* LaTeX template: Use `pgfpages` package; this is needed for notes on second screen in beamer
* LaTeX template: Add `beameroption` variable in template
2018-03-30 09:20:06 -07:00
Anabra
2d414321df
Removed unused extensions ( #4506 )
2018-03-29 10:47:12 -07:00
John MacFarlane
5a79948e0c
Mediawiki reader: improve table parsing.
...
This fixes detection of table attributes and also
handles `!` characters in cells.
Closes #4508 .
2018-03-28 08:59:34 -07:00
Alexander Krotov
d0a7dbd948
Muse writer: implement Default for WriterState
2018-03-28 15:49:50 +03:00
Alexander Krotov
7c268c492d
Muse writer: move options, stTopLevel and stInsideBlock to WriterEnv
2018-03-28 15:45:45 +03:00
Alexander Krotov
7252777078
Muse writer: define Muse type
2018-03-28 14:53:03 +03:00
Alexander Krotov
b379a2903a
Muse writer: escape semicolons and markers after line break
2018-03-28 13:19:39 +03:00
Mauro Bieg
c24ecf9cd9
MANUAL: clarify template vs metadata variables ( #4501 )
2018-03-27 09:14:50 -07:00
Alexander Krotov
6d35090538
Cleanup Muse reader and writer
2018-03-26 16:05:02 +03:00
Alexander Krotov
989a9ebec3
Muse writer: remove unused binding
2018-03-25 23:42:07 +03:00
Alexander Krotov
aa929e462d
Muse reader: enable round-trip test
...
Close #4468
2018-03-25 23:04:54 +03:00
Alexander Krotov
79592db66c
Muse reader: allow links to have empty descriptions
2018-03-25 22:16:45 +03:00
Alexander Krotov
a3f659d2c0
Muse writer: escape ordered list markers
...
Also reduced amount of <verbatim> tags in output to avoid escaping every "-" and word that ends in a full stop.
2018-03-25 19:28:23 +03:00
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
Jesse Rosenthal
2582de5384
Powerpoint writer: code cleanup.
2018-03-25 10:22:37 -04: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