Alexander Krotov
e536c4d9c9
hlint Muse reader and tests
2017-12-06 19:38:25 +03:00
Alexander Krotov
6fd3cdac46
Muse reader: add test for #disable-tables directive in Emacs mode
2017-12-06 19:35:01 +03:00
Alexander Krotov
3ae359721d
Muse reader: don't allow emphasis to be preceded by letter
2017-12-06 19:04:35 +03:00
John MacFarlane
ae60e0196c
Add empty_paragraphs
extension.
...
* Deprecate `--strip-empty-paragraphs` option. Instead we now
use an `empty_paragraphs` extension that can be enabled on
the reader or writer. By default, disabled.
* Add `Ext_empty_paragraphs` constructor to `Extension`.
* Revert "Docx reader: don't strip out empty paragraphs."
This reverts commit d6c58eb836
.
* Implement `empty_paragraphs` extension in docx reader and writer,
opendocument writer, html reader and writer.
* Add tests for `empty_paragraphs` extension.
2017-12-04 14:56:57 -08:00
Alexander Krotov
ed261e5832
Muse reader: add underline support in Emacs Muse mode
2017-12-04 15:59:26 +03:00
John MacFarlane
d6c58eb836
Docx reader: don't strip out empty paragraphs.
...
We now have the `--strip-empty-paragraphs` option for that,
if you want it. Closes #2252 .
Updated docx reader tests.
We use stripEmptyParagraphs to avoid changing too
many tests. We should add new tests for empty paragraphs.
2017-12-02 16:51:31 -08:00
Alexander Krotov
7751391fce
Muse reader: correctly remove indentation from notes
...
Exactly one space is required and considered to be part of the marker.
2017-11-29 05:12:25 +03:00
John MacFarlane
5a225aa603
Temporarily disable round-trip block test for muse reader.
...
See #4107 .
2017-11-28 16:13:01 -08:00
Alexander Krotov
c2993a6fc6
Muse reader: parse "~~" as non-breaking space in Emacs mode
2017-11-27 12:25:06 +03:00
Alexander Krotov
00004f042c
Muse reader: make code blocks round trip
2017-11-27 04:54:23 +03:00
Alexander Krotov
bdad8c1d69
Muse reader: drop common space prefix from list items
2017-11-26 22:14:18 +03:00
Alexander Krotov
a8ac673285
Muse reader: Add partial round trip test
2017-11-26 02:01:39 +03:00
Alexander Krotov
ea2ea455b3
Muse reader: don't interpret XML entities
2017-11-25 22:46:25 +03:00
Alexander Krotov
77af25b4c3
Muse reader: parse markup in definition list terms
2017-11-24 14:02:43 +03:00
Alexander Krotov
137c7c2a65
Muse reader: allow definition to end with EOF
2017-11-24 13:16:09 +03:00
Alexander Krotov
0cfd764d27
Muse: move inline list normalization to writer
2017-11-24 12:17:20 +03:00
Albert Krewinkel
cd85c73ded
Org reader: allow empty list items
...
Fixes : #4090
2017-11-22 22:53:24 +01:00
Alexander Krotov
75e2a1104c
Muse reader: allow list items to be empty
2017-11-22 18:49:07 +03:00
Alexander Krotov
0b63ac2db1
Muse reader: add ordered list test
2017-11-22 18:48:45 +03:00
Alexander Krotov
c8ab4789b6
Muse reader: add more multiline definition tests
2017-11-22 15:23:09 +03:00
Alexander Krotov
351765d4ad
Muse reader: concatenate inlines of the same type
2017-11-22 01:22:43 +03:00
Alexander Krotov
df3a80cc97
Muse writer: escape only </code> inside code tag
...
Additional <verbatim> is not needed as <code> is verbatim already.
2017-11-22 01:22:43 +03:00
Alexander Krotov
6c17117ef2
Muse reader: add inline <literal> support
2017-11-21 19:53:55 +03:00
Alexander Krotov
59f537c31f
Muse reader: test <literal> blocks
2017-11-21 19:01:53 +03:00
Alexander Krotov
82bcda80c6
Muse reader: count only one space as part of list item marker
2017-11-19 04:40:00 +03:00
Alexander Krotov
163af3fdee
Muse reader: produce SoftBreaks on newlines
...
Now wrapping can be preserved with --wrap=preserve
2017-11-19 02:37:52 +03:00
Alexander Krotov
6018a2324d
Muse reader: Add Text::Amuse footnote extensions
...
Footnote end is indicated by indentation,
so footnotes can be placed anywhere in the text,
not just at the end of it.
2017-11-18 23:43:02 +03:00
Alexander Krotov
3a83b3843d
Replace "emacs" extension with "amuse" extension
...
It makes clear that extension is related to Muse markup.
2017-11-13 18:41:49 +03:00
Alexander Krotov
df4cb20f29
Muse reader: accept Emacs Muse definition lists
...
Emacs Muse does not require indentation.
2017-11-12 18:08:41 +03:00
Sascha Wilde
03361f0a68
Creole reader: additional test on nowiki-block after para.
2017-10-31 22:26:35 +01:00
Sascha Wilde
fa67d6e86f
Creole reader: fixed lists with trailing white space.
2017-10-31 18:55:27 +01:00
John MacFarlane
6a1476e7e2
Export all of Text.Pandoc.Class from Text.Pandoc.
2017-10-29 15:00:49 -07:00
John MacFarlane
ff16db1aa3
Automatic reformating by stylish-haskell.
2017-10-27 20:28:29 -07:00
John MacFarlane
a2a14f9029
Removed old adjacent_links test for docx reader.
...
See #2270 for background -- this test blocked the consistent
underline change and was hard to revise, so for now we are
removing it.
2017-10-27 16:09:44 -07:00
hftf
7f8a3c6cb7
Consistent underline for Readers ( #2270 )
...
* Added underlineSpan builder function. This can be easily updated if needed. The purpose is for Readers to transform underlines consistently.
* Docx Reader: Use underlineSpan and update test
* Org Reader: Use underlineSpan and add test
* Textile Reader: Use underlineSpan and add test case
* Txt2Tags Reader: Use underlineSpan and update test
* HTML Reader: Use underlineSpan and add test case
2017-10-27 18:45:00 -04:00
Sascha Wilde
66fd3247ea
Creole reader ( #3994 )
...
This is feature complete but not very thoroughly tested yet.
2017-10-26 19:19:28 -04:00
Ben Firshman
9046dbadb1
Latex reader: Skip spaces in image options
2017-10-17 16:42:11 +03:00
Ben Firshman
d73fdbf895
Add tests for existing \includegraphics behaviour
2017-10-17 15:09:55 +03:00
Albert Krewinkel
f176ad6f21
Org reader: end footnotes after two blank lines
...
Footnotes can not only be terminated by the start of a new footnote or a
header, but also by two consecutive blank lines.
2017-10-08 14:17:26 +02:00
bucklereed
c359bdd9b1
LaTeX reader: read polyglossia/babel \text($LANG){...}.
2017-10-06 12:17:50 +01:00
Albert Krewinkel
514662e544
Org reader: support \n
export option
...
The `\n` export option turns all newlines in the text into hard
linebreaks.
Closes #3950
2017-10-02 23:11:58 +02:00
John MacFarlane
f3a80034ff
Removed writerSourceURL, add source URL to common state.
...
Removed `writerSourceURL` from `WriterOptions` (API change).
Added `stSourceURL` to `CommonState`.
It is set automatically by `setInputFiles`.
Text.Pandoc.Class now exports `setInputFiles`, `setOutputFile`.
The type of `getInputFiles` has changed; it now returns `[FilePath]`
instead of `Maybe [FilePath]`.
Functions in Class that formerly took the source URL as a parameter
now have one fewer parameter (`fetchItem`, `downloadOrRead`,
`setMediaResource`, `fillMediaBag`).
Removed `WriterOptions` parameter from `makeSelfContained` in
`SelfContained`.
2017-09-30 16:11:20 -05:00
Alexander Krotov
b5d064e8f0
Muse reader: parse anchors
2017-09-28 14:57:24 +03:00
Alexander Krotov
2cdb8fe2e6
Muse reader: test metadata parsing
2017-09-26 19:31:10 +03:00
Albert Krewinkel
3a7663281a
Org reader: update emphasis border chars
...
The org reader was updated to match current org-mode behavior: the set
of characters which are acceptable to occur as the first or last
character in an org emphasis have been changed and now allows all
non-whitespace chars at the inner border of emphasized text (see
`org-emphasis-regexp-components`).
Fixes : #3933
2017-09-25 09:31:29 +02:00
John MacFarlane
ddecd72783
Merge pull request #3911 from labdsf/muse-reader-braces
...
Muse reader: parse {{{ }}} example syntax
2017-09-11 14:01:05 -07:00
Alexander Krotov
8e4ee66563
Muse reader: allow inline markup to be followed by punctuation
...
Previously code was not allowed to be followed by comma,
and emphasis was allowed to be followed by letter.
2017-09-11 18:34:32 +03:00
Alexander Krotov
508c3a64d8
Muse reader: parse {{{ }}} example syntax
2017-09-11 18:17:28 +03:00
Alexander Krotov
27cccfac84
Muse reader: parse verbatim tag
2017-09-11 12:13:09 +03:00
Alexander Krotov
afedb41b17
Muse reader: trim newlines from <example>s
2017-09-10 12:42:24 +03:00