Albert Krewinkel
2f92261d87
Org reader: fix self-link parsing regression
...
Fixes a regression introduced by the previous commit.
2019-01-01 22:06:44 +01:00
Albert Krewinkel
c0caaaeabb
Org reader: fix treatment of links to images
...
Links with descriptions which are pointing to images are no longer read
as inline images, but as proper links.
Fixes : #5191
2019-01-01 21:03:38 +01:00
Alexander Krotov
5101f4324b
Muse reader tests: test #cover directive
2018-12-25 15:23:02 +03:00
Jesse Rosenthal
0f736d778f
Docx: add test for lists with level overrides.
2018-12-10 19:24:56 -05:00
Alexander Krotov
367e8cac18
Muse reader: trim whitespace before parsing grid table cells
2018-11-14 19:17:05 +03:00
Alexander Krotov
c61b67410a
Muse reader: add grid tables support
2018-11-14 17:58:44 +03:00
Yan Pashkovsky
43a0734f62
table tests
2018-11-02 22:42:51 -07:00
John MacFarlane
3305a018bc
Roff reader: properly handle unknown backslash escapes.
...
They are treated as regular characters, according to groff 7.
Cloess #5034 .
2018-10-30 15:54:29 -07:00
John MacFarlane
8d55dc10cd
Roff tokenizer: better handling of escapes.
2018-10-28 21:37:57 -07:00
John MacFarlane
22755a35b7
Roff tokenizer: revamped font parsing using escapeArg.
...
Add support for \C'...' escapes.
2018-10-28 18:06:34 -07:00
Alexander Krotov
f8ca36525d
Muse: Make tables round-trip
2018-10-28 03:52:35 +03:00
Alexander Krotov
e34a0703f5
Muse reader: try to parse lists before trying to parse table
...
This ensures that tables inside lists are parsed correctly.
2018-10-28 03:52:25 +03:00
Alexander Krotov
d8135b2e67
Remove misleading comment from Muse reader tests
...
pandoc follows Text::Amuse rules instead of being bug compatible with Emacs Muse
2018-10-27 23:43:23 +03:00
Alexander Krotov
d28dca57db
Muse reader: forbid whitespace after opening and before closing markup elements
...
See https://github.com/melmothx/text-amuse/issues/44 for discussion on these rules
2018-10-27 23:35:11 +03:00
Alexander Krotov
1ca320e249
Muse reader: parse page breaks
2018-10-26 16:30:15 +03:00
John MacFarlane
0327226d4c
Man reader: don't parse \[ul] as unicode escape.
2018-10-22 12:05:34 -07:00
Alexander Krotov
875e33ecf6
Muse reader: allow footnotes to start with empty line
...
A space character was required after footnote marker, now newline is allowed.
2018-10-22 03:05:17 +03:00
John MacFarlane
2b7a541dd0
Man reader: Fixed handling of nested fonts.
...
Closes #4978 .
2018-10-20 22:41:39 -07:00
Alexander Krotov
8df59952bf
Muse reader: allow empty headers
...
Previously empty headers caused parser to terminate without parsing the rest of the document.
2018-10-21 06:42:00 +03:00
John MacFarlane
f202279902
Man reader: Fix .B, .I, .BR, etc.
2018-10-20 16:40:44 -07:00
John MacFarlane
a9fc71118f
Man reader: major restructuring, support macros.
...
- Improved support for custom macro definitions.
- LinePart type has been added. RoffStr is now one
constructor of LinePart (the other being MacroArg).
- MComment has lost its argument.
- MEndMacro has been removed.
- MStr has been removed (we now simply use LinePart).
- Macros now store a list of tokens.
- Each macro argument is a [LinePart], instead of a LinePart.
- .BR now behaves as documented in man (and doesn't create a link).
2018-10-20 15:57:34 -07:00
John MacFarlane
62566c8182
Man reader: handle shift in list style.
...
Closes #4987 .
2018-10-20 09:30:37 -07:00
John MacFarlane
7dd06e96d7
Man reader: Improved header parsing.
...
- .SH should be level 1, .SS level 2.
- The header title can come on the next line.
2018-10-19 23:27:04 -07:00
John MacFarlane
f5704fac97
Man reader: properly handle multi-block list items.
...
Closes #4985 .
2018-10-19 22:54:05 -07:00
John MacFarlane
790ada8946
Man reader: Added more tests for escapes.
...
Closes #4983 .
2018-10-19 15:36:43 -07:00
John MacFarlane
56c4a11f97
Man reader: minor improvements.
...
use `trimInlines` for Para content to avoid leading and
trailing spaces.
Fix handling of \" in middle of line.
Add more tests for escapes.
2018-10-19 15:17:53 -07:00
John MacFarlane
e6772360f6
More man reader test updates.
2018-10-19 14:59:11 -07:00
John MacFarlane
400e87df1d
Update man reader tests.
2018-10-18 23:54:13 -07:00
John MacFarlane
94c73e84d5
Merge branch 'Yanpas-groff_reader'
2018-10-18 20:58:46 -07:00
Alexander Krotov
6fc812485e
Muse reader: allow examples to be indented with tabs
2018-10-17 18:17:30 +03:00
Alexander Krotov
1071732719
Muse reader: remove indentation from examples indicated by {{{ and }}}
2018-10-17 13:57:05 +03:00
John MacFarlane
5c42101ee9
Merge branch 'groff_reader' of https://github.com/Yanpas/pandoc into Yanpas-groff_reader
2018-10-16 18:39:20 -07:00
Yan Pas
7741cdbf04
added old-style test
2018-10-17 00:21:52 +03:00
John MacFarlane
885cbfd420
Only override --quickcheck-tests=N if N is not default value (100).
...
Some of the round-trip tests are set to do a maximum of 25
trials when the default value is given.
Closes #4956 .
2018-10-15 22:15:43 -07:00
Yan Pas
ce27bf9a02
builders
2018-10-16 03:12:06 +03:00
Yan Pas
3fed62611e
tests, commented debug functions
2018-10-14 00:57:15 +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
d3b2161bd1
Muse reader: fix parsing of empty cells
2018-10-10 01:48:58 +03:00
Yan Pas
27467189ab
Merge branch 'master' into groff_reader
2018-10-07 18:10:01 +03:00
Alexander Krotov
5f7799ac8f
Muse reader: allow table caption to contain "+"
2018-10-05 11:58:41 +03:00
leungbk
4f9ab7e032
Parse empty argument array in inline src blocks.
...
`enclosedByPair` alone does not the handle the empty array properly since it uses `many1Till`.
2018-09-28 14:05:14 +02:00
John MacFarlane
13f8f3c1a8
HTML, Muse reader tests: reduce time taken by round-trip test.
2018-09-27 09:47:09 -07:00
Alexander Krotov
389ffa3045
Muse reader tests: more tests
...
Check that indented blocks that end in self-terminating blocks (such as block tags and verse) can be terminated by paragraphs.
2018-09-22 20:28:11 +03:00
Alexander Krotov
dd5d234c6a
Muse reader: do not allow code markup to be followed by digit
2018-09-21 13:07:56 +03:00
John MacFarlane
136bf901aa
Markdown reader: distinguish autolinks in the AST.
...
With this change, autolinks are parsed as Links with
the `uri` class. (The same is true for bare links, if
the `autolink_bare_uris` extension is enabled.) Email
autolinks are parsed as Links with the `email` class.
This allows the distinction to be represented in the
URI.
Formerly the `uri` class was added to autolinks by
the HTML writer, but it had to guess what was an autolink
and could not distinguish `[http://example.com ](http://example.com )`
from `<http://example.com >`. It also incorrectly recognized
`[pandoc](pandoc)` as an autolink. Now the HTML writer
simply passes through the `uri` attribute if it is present,
but does not add anything.
The Textile writer has been modified so that the `uri`
class is not explicitly added for autolinks, even if it
is present.
Closes #4913 .
2018-09-19 14:53:29 -07:00
danse
db2a68d089
parse rST inlines containing newlines closing #4912
...
this eliminates a regression error introduced after pandoc 2.1.1,
affecting rST inline parsing. see the issue for details
2018-09-18 13:31:09 +02:00
Alexander Krotov
3f8891b26f
Enable tables in HTML round trip test
2018-09-11 19:24:00 +03:00
Alexander Krotov
ca420983aa
HTML reader tests: accept Blocks in round trip test
2018-09-11 19:23:46 +03:00
Alexander Krotov
0ac3512cfe
Muse reader tests: accept Blocks instead of Block in round trip test
...
This way testcase can be shrinked better up to removing all blocks completely.
2018-09-11 14:22:09 +03:00
Alexander Krotov
1b9dd3e06b
Remove RawBlock from HTML round trip tests
2018-09-10 14:28:28 +03:00
Alexander Krotov
4467fe6d38
HTML reader: test round trip property
2018-09-10 12:15:27 +03:00
Albert Krewinkel
275afec38a
Org reader: respect export option p
for planning info
...
Inclusion of planning info (*DEADLINE*, *SCHEDULED*, and *CLOSED*) can
be controlled via the `p` export option: setting the option to `t` will
add all planning information in a *Plain* block below the respective
headline.
2018-09-06 20:57:21 +02:00
Alexander Krotov
0b7001c318
Muse reader: close the </quote> in indented tag test
...
There is already a separate test for unclosed </quote>.
2018-09-06 19:57:24 +03:00
Albert Krewinkel
ceec26f647
Org reader: strip planning info from output
...
Planning info is parsed, but not included in the output (as is the
default with Emacs Org-mode).
Fixes : #4867
2018-09-05 17:12:54 +02:00
Alexander Krotov
66f3b00206
Remove redundant $
2018-09-04 10:53:37 +03:00
Alexander Krotov
02e68859eb
Muse reader: autonumber sections in the correct order
...
Parsing now stops at each section header to ensure the
header is registered before parsing of the next section starts.
2018-09-02 17:37:19 +03:00
Alexander Krotov
23ed97f081
Muse reader: allow newline after opening "*" or "**"
...
Emacs Muse allows this.
2018-09-02 01:03:43 +03:00
Alexander Krotov
56685e8735
Muse reader: parse <verse> tag in one pass
...
instead of using parseFromString.
This change makes it possible to have verbatim </verse> tag
inside verse.
2018-08-31 16:43:07 +03:00
Alexander Krotov
d74c63d6d3
Fix a typo: s/afeter/after/
2018-08-30 16:02:46 +03:00
Alexander Krotov
81131ef5d1
Muse reader: don't allow digits after closing marker in lightweight markup
...
This change makes reader more compatible with Emacs Muse
2018-08-12 21:20:07 +03:00
John MacFarlane
581a3514ca
RST reader: improve parsing of inline interpreted text roles.
...
* Use a Span with class "title-reference" for the default
title-reference role.
* Use B.text to split up contents into Spaces, SoftBreaks, and Strs
for title-reference.
* Use Code with class "interpreted-text" instead of Span and Str for
unknown roles. (The RST writer has also been modified to round-trip
this properly.)
* Disallow blank lines in interpreted text.
* Backslash-escape now works in interpreted text.
* Backticks followed by alphanumerics no longer end interpreted text.
Closes #4811 .
2018-08-05 09:56:43 -07:00
danse
be2d7921cb
RST reader: remove support for nested inlines.
...
RST does not allow nested emphasis, links, or other inline
constructs.
Closes #4581 , double parsing of links with URLs as
link text. This supersedes the earlier fix for #4581
in 6419819b46
.
Fixes #4561 , a bug parsing with URLs inside emphasis.
Closes #4792 .
2018-07-24 15:35:50 -07:00
Albert Krewinkel
4e899eb9c8
Org reader: fix parsers relying on parseFromString
...
Emphasis was not parsed when it followed directly after some block types
(e.g., lists).
The org reader uses a wrapper for the `parseFromString` function to
handle org-specific state. The last position of a character allowed
before emphasis was reset incorrectly in this wrapper. Emphasized text
was not recognized when placed directly behind a block which the reader
parses using `parseFromString`.
Fixes : #4784
2018-07-23 22:05:41 +02:00
Anders Waldenborg
ec30fb37c1
Wrap emojis in span nodes ( #4759 )
...
Text.Pandoc.Emoji now exports `emojiToInline`, which returns a Span inline containing the emoji character and some attributes with metadata (class `emoji`, attribute `data-emoji` with emoji name). Previously, emojis (as supported in Markdown and CommonMark readers, e.g "😄 ")
were simply translated into the corresponding unicode code point. By wrapping them in Span
nodes, we make it possible to do special handling such as giving them a special font
in HTML output. We also open up the possibility of treating them differently when the
`--ascii` option is selected (though that is not part of this commit).
Closes #4743 .
2018-07-15 15:14:40 -07:00
Alexander Krotov
41cf6d540f
More spellcheck
2018-07-02 19:07:28 +03:00
Alexander Krotov
5fbc981fc2
Muse reader: add support for floating images
2018-05-31 23:31:27 +03:00
Alexander Krotov
1f78efff3b
Muse reader: add support for images with specified width
2018-05-31 01:07:51 +03:00
Alexander Krotov
1100bfc0e6
Muse reader: parse image URLs without "guard" and "takeExtension"
2018-05-30 02:29:43 +03:00
Alexander Krotov
6907985e82
Muse reader: test image with space in filename
2018-05-27 22:22:04 +03:00
Yan Pas
1ce067fc2a
tests, parsing fixes
2018-05-23 00:20:30 +03:00
Yan Pas
b0b41cbbe6
Merge branch 'master' into groff_reader
2018-05-12 11:42:39 +03:00
John MacFarlane
a00ca6f0d8
Removed inadvertently added .orig files from repository.
...
These were added by
96d10c72cc
Closes #4648 .
2018-05-11 17:10:32 -07:00
Yan Pas
ad19166bc3
fix build and tests
2018-05-09 20:40:37 +03:00
Yan Pashkovsky
a337685fe0
Merge branch 'master' into groff_reader
2018-05-09 19:48:34 +03:00
Yan Pas
c1617565fc
basic manfile parsing
2018-05-09 03:24:45 +03:00
Alexander
1927bc9aac
Add FB2 reader ( #4539 )
2018-04-26 12:33:18 -07:00
Alexander Krotov
4d89a1db7f
Muse reader: allow nested footnotes
2018-04-26 12:38:17 +03:00
Alexander Krotov
ce4326a4f1
Muse reader: allow "-" in anchors
2018-04-19 14:17:59 +03:00
Jesse Rosenthal
c5d8fab058
Docx reader tests: Test for combining adjacent code blocks.
2018-04-17 09:29:54 -04:00
Alexander Krotov
3443df6068
Markdown reader: add regression test for previous commit
2018-04-17 11:55:37 +03:00
Alexander Krotov
a8122987fc
Muse reader: allow verse to be indented
...
Muse writer indents verse blocks in definition list more than necessary, so Muse reader should parse them.
2018-04-16 15:08:34 +03:00
Alexander Krotov
ce7301de02
Fix a typo in Muse reader testsuite comment
2018-04-16 12:12:25 +03:00
Alexander Krotov
01f5ed14e6
Muse reader: don't allow footnote references inside links
2018-04-15 17:53:53 +03:00
Alexander Krotov
9cc2bf0295
Muse reader: allow URL to be empty
...
Muse writer can write links with empty URLs, so Muse reader should read them.
2018-04-15 14:50:46 +03:00
Alexander Krotov
6be0139145
Muse reader: require that comment semicolons are in the first column
...
Fixes #4551
2018-04-15 12:17:33 +03:00
John MacFarlane
d5b98c8c6e
Man writer: Don't escape U+2019 as '.
...
Closes #4550 .
2018-04-14 10:42:05 -07:00
Alexander Krotov
17b0499516
Muse reader: add support for Text:Amuse multiline headings
2018-04-09 02:05:57 +03:00
Alexander Krotov
ebbd441d06
Muse reader: add support for <biblio> and <play> tags
2018-04-07 18:31:06 +03:00
Alexander Krotov
2380845206
Muse reader: add <math> tag support
2018-04-02 17:19:26 +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
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
c6232d0f7d
Muse reader: require block <literal> tags to be on separate lines
2018-03-25 18:31:28 +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
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
9bcd090848
Muse reader: parse <class> tag
...
<class> tag is supported by Emacs Muse
2018-03-10 07:27:41 +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
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
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
a7ac590b08
Muse reader: allow <quote> and other tags to be indented
2018-02-28 12:11:56 +03:00
Albert Krewinkel
6ed7926bb4
Org reader tests: move citation tests to separate module
2018-02-26 21:18:13 +01:00
Yan Pas
fd3676a568
initial
2018-02-25 03:34:17 +03:00
Alexander Krotov
39dd7c794b
Muse reader: allow single colon in definition list term
2018-02-24 02:38:10 +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
Alexander Krotov
5a9d7d20dd
Move manyUntil to Text.Pandoc.Parsing and use it in Txt2Tags reader
2018-02-19 19:23:30 +03:00
Alexander Krotov
0e4b8ae362
Muse reader: prioritize lists with roman numerals over alphabetical lists
...
This is to make sure "i." starts a roman numbered list,
instead of a list with letter "i" (followed by "j", "k", ...").
2018-02-16 12:53:41 +03:00
danse
e6ff7f7986
Docx reader: Pick table width from the longest row or header
...
This change is intended to preserve as much of the table content as
possible
Closes #4360
2018-02-15 15:06:01 -05:00
Alexander Krotov
82a0ceaf18
Muse reader: fix directive parsing
...
This fixes bugs introduced in commit 4bfab8f04c
.
2018-02-15 18:17:24 +03:00
Alexander Krotov
42e39fbd26
Muse reader: parse definition lists with multiple descriptions
2018-02-13 14:34:45 +03:00
Alexander Krotov
8aed3652c2
Muse reader: refactor to avoid reparsing
...
Lists are parsed in linear instead of exponential time now.
Contents of block tags, such as <quote>, is parsed directly,
without storing it in a string and parsing with parseFromString.
Fixed a bug: headers did not terminate lists.
2018-02-12 17:30:57 +03:00
Alexander Krotov
3480a8acc2
Muse reader: paragraph indentation does not indicate nested quote
...
Muse allows indentation to indicate quotation or alignment,
but only on the top level, not within a <quote> or list.
This patch also simplifies the code by removing museInQuote
and museInList fields from the state structure.
Headers and indented paragraphs are attempted to be parsed
only at the topmost level, instead of aborting parsing with guards.
2018-02-12 04:57:56 +03:00
Alexander Krotov
450a200637
Muse reader: test empty quote tag
2018-02-11 19:45:16 +03:00
Alexander Krotov
1dfda7e204
Muse reader: require that block tags are on separate lines
...
Text::Amuse already explicitly requires it anyway.
Supporting block tags on the same line as contents makes
it hard to combine closing tag parsers with indentation parsers.
Being able to combine parsers is required for no-reparsing refactoring
of Muse reader.
2018-02-11 19:35:58 +03:00
Alexander Krotov
6c45f8c8f6
Muse reader: test that two blank lines after verse can separate list items
...
Unlike paragraph and <quote> tag parsers, verse parser consumes newline.
For this reason only three or more blank lines can separate list items.
2018-02-05 01:39:38 +03:00
Alexander Krotov
3b667c54ea
Muse reader: test that lists can be separated with two blanklines after blockquote
...
Existing tests only checked this for paragraphs.
2018-02-05 00:25:31 +03:00
Alexander Krotov
248f6076bc
Muse reader: fix parsing of trailing whitespace
...
Newline after whitespace now results in softbreak
instead of space.
2018-01-28 03:18:29 +03:00
Alexander Krotov
6337539e32
Muse reader: fix matching of closing inline tags
2018-01-24 14:16:56 +03:00
Alexander Krotov
98f0e2053e
Muse reader: remove multiple descriptions during round-trip tests
2018-01-20 18:34:42 +03:00
Alexander Krotov
e1cc9d9abc
Muse reader: enable definition lists in round-trip test
2018-01-20 14:09:44 +03:00
John MacFarlane
b8ffd834cf
hlint code improvements.
2018-01-19 21:25:24 -08:00
Alexander Krotov
22b69b557e
Muse reader: fix parsing of nested definition lists
2018-01-20 02:14:27 +03:00
Alexander Krotov
7680e9b964
Muse reader: require only one space for nested definition list indentation
2018-01-19 14:16:20 +03:00
Alexander Krotov
19d2576223
Muse reader: parse definition list terms without parseFromString
2018-01-19 01:50:17 +03:00
Alexander Krotov
a516198d47
Muse reader: fix parsing of code at the beginning of paragraph
2018-01-18 15:35:43 +03:00
Alexander Krotov
5f57094a47
Muse reader: refactor definition list parsing
...
Test with wrong indentation is removed,
because now it is parsed as nested lists.
Emacs Muse and Text::Amuse don't have the same
behavior anyway.
2018-01-18 14:55:07 +03:00
Alexander Krotov
9986ccb333
Muse reader: parse "~~" as non-breaking space in Text::Amuse mode
...
Latest Text::Amuse supports "~~"
2018-01-18 02:46:02 +03:00
Alexander Krotov
ab85143e8a
Muse reader: refactor list parsing
...
Now list item contents is parsed as blocks,
without resorting to parseFromString.
Only the first line of paragraph has to
be indented now, just like in Emacs Muse
and Text::Amuse.
Definition lists are not refactored yet.
See also: issue #3865 .
2018-01-18 02:17:26 +03:00
Jesse Rosenthal
004f60bf26
Docx reader: Add test for hyperlinks in instrText tag
...
This is difficult to recreate with a modern version of Word, so I'm
using the file submitted with the bug report. It would be preferable
to find a smaller example with Latin characters, though, so as not to
confuse the issue being tested.
2018-01-16 13:22:02 -05:00
John MacFarlane
d9584d73f9
Markdown reader: Improved inlinesInBalancedBrackets.
...
The change both improves performance and fixes a
regression whereby normal citations inside inline notes
were not parsed correctly.
Closes jgm/pandoc-citeproc#315 .
2018-01-14 12:24:21 -08:00
John MacFarlane
e5abee82f2
Shorten unbalanced brackets test.
...
It was taking a lot of time.
2018-01-14 12:24:21 -08:00
Jesse Rosenthal
a5b71a3c7f
Docx reader: Add tests for paragraph insertion/deletion.
2018-01-02 11:32:48 -05:00
Jesse Rosenthal
3f30455b49
Docx reader: tests for overlapping targets (anchor spans).
2017-12-31 09:36:42 -05:00
Jesse Rosenthal
475b0dcb66
Docx reader: tests for removing unused anchors.
2017-12-30 22:43:33 -05:00
Alexander Krotov
551aec7b01
Muse reader: enable round trip test
...
Closes #4107
2017-12-30 20:32:16 +03:00
John MacFarlane
ddd6a89247
Text.Pandoc.Class: add insertInFileTree (API change).
...
This gives a pure way to insert an ersatz file into a FileTree.
In addition, we normalize paths both on insertion and on
lookup, so that "foo" and "./foo" will be judged equivalent.
2017-12-28 10:23:09 -08:00
Albert Krewinkel
c6b5d65161
Org smart test: drop superfluous import
...
Keeps GHC 7.8 and GHC 7.10 happy.
2017-12-28 14:51:03 +01:00
Albert Krewinkel
e5c8b65004
Org reader: support minlevel option for includes
...
The level of headers in included files can be shifted to a higher level
by specifying a minimum header level via the `:minlevel` parameter. E.g.
`#+include: "tour.org" :minlevel 1` will shift the headers in tour.org
such that the topmost headers become level 1 headers.
Fixes : #4154
2017-12-28 14:16:04 +01:00
Albert Krewinkel
2d443ecb07
Break-up org reader test file
...
The org reader test file had grown large, to the point that editor
performance was negatively affected in some cases. The tests are spread
over multiple submodules, and re-combined into a tasty TestTree in the
main org reader test file.
2017-12-28 14:15:58 +01:00
Jesse Rosenthal
d71165c8e2
Docx reader: add tests for structured document tags unwrapping.
2017-12-27 10:03:00 -05:00