Commit graph

10737 commits

Author SHA1 Message Date
Alexander Krotov
3443df6068 Markdown reader: add regression test for previous commit 2018-04-17 11:55:37 +03:00
John MacFarlane
8ac5eb9d44 Markdown reader: remove "fallback" for doubleQuote parser.
Previously the parser tried to be efficient -- if no end double
quote was found, it would just return the contents.  But this
could backfire in a case like:

    **this should "be bold**

since the fallback would return the content `"be bold**` and the
closing boldface delimiter would never be encountered.
2018-04-16 23:15:09 -07:00
John MacFarlane
57256d6d91 Beamer writer: don't use format specifier for default ordered lists.
This gives better results for styles that put ordered list
markers in boxes or circles.

Closes #4556.
2018-04-16 19:02:49 -07:00
Alexander Krotov
04478cf0e2 hlint Muse writer 2018-04-16 16:03:49 +03:00
Alexander Krotov
46cc1e73b6 Muse writer: simplify isHorizontalRule 2018-04-16 15:36:30 +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
fb014e6e9f Muse reader code cleanup 2018-04-16 13:22:31 +03:00
Alexander Krotov
ce7301de02 Fix a typo in Muse reader testsuite comment 2018-04-16 12:12:25 +03:00
Alexander Krotov
f39931fd6c Muse writer: escape definition list terms starting with list markers 2018-04-16 11:40:18 +03:00
John MacFarlane
8ca012f139 Ms writer: font improvements.
* Use `\f[R]` rather than `\f[]` to reset.  The latter
  returns to the previous font, which gives unintended
  results in some cases.
* Use `\f[BI]` and `\f[CB]` in headers, instead of `\f[I]` and `\f[C]`,
  since the header font is automatically bold.
* Use `\f[CB]` rather than `\f[BC]` for monospace bold.

Closes #4552.
2018-04-15 22:44:16 -07:00
John MacFarlane
939985ef18 MANUAL.txt: Don't say that empty_paragraphs affects markdown output.
It doesn't.

Closes #4540.
2018-04-15 17:51:17 -07:00
John MacFarlane
c8331a924d Makefile: build 32- and 64-bit Windows packages. 2018-04-15 17:09:50 -07:00
Alexander Krotov
01f5ed14e6 Muse reader: don't allow footnote references inside links 2018-04-15 17:53:53 +03:00
Alexander Krotov
17767bd29d Muse writer: escape strings starting with space 2018-04-15 16:28:45 +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
34d8ffbcfc Added a needed import in Text.Pandoc.App. 2018-04-14 17:44:44 -07:00
John MacFarlane
16439c879e Ms writer link improvements.
+ Create pdf anchor for a Div with an identifier.
+ Escape `/` character in anchor ids.
+ Improve escaping for anchor ids: we now use _uNNN_ instead of uNNN
  to avoid ambiguity.

This is intended to help with #4515; however, in my tests, the
link to the reference does not seem to work. I'm not sure why.
2018-04-14 10:59:01 -07:00
John MacFarlane
d5b98c8c6e Man writer: Don't escape U+2019 as '.
Closes #4550.
2018-04-14 10:42:05 -07:00
John MacFarlane
488320faac appveyor.yml - build 64 bit version and 32 bit. 2018-04-12 10:56:44 -07:00
John MacFarlane
499c91dd96 Fix bash completion for --print-default-data-file.
Previously this looked in the filesystem, even if pandoc
was compiled with `embed_data_files` (and sometimes it looked
in a nonexistent build directory).  Now the bash completion
script just includes a hard-coded list of data file names.
See #4549.
2018-04-12 09:52:10 -07:00
John MacFarlane
c3d0cc9b8e Bump to 2.1.4. 2018-04-11 17:24:19 -07:00
John MacFarlane
923c048caf Update changelog, AUTHORS.md. 2018-04-11 17:24:04 -07:00
John MacFarlane
dd4e8c4a7a Bump temporary upper bound to 1.4. 2018-04-11 09:45:17 -07:00
Alexander Krotov
782ab73aa3 Muse writer: escape > less often
> should be escaped only when it can start verse, i.e., at the beginning of the line.
2018-04-10 23:38:30 +03:00
John MacFarlane
72878adc63 PDF: Use withTempDir in html2pdf.
This is intended to help with #4524, a problem on Windows
where using weasyprint led to a blank PDF.
2018-04-09 09:49:09 -07:00
Alexander Krotov
52803e2960 Muse writer: don't break headers, line blocks and tables with line breaks 2018-04-09 04:24:08 +03:00
Alexander Krotov
79b67dec78 Muse writer: fix Haddock comment 2018-04-09 04:24:08 +03:00
Alexander Krotov
44093930a8 Muse writer: correctly output empty headings 2018-04-09 04:10:05 +03:00
John MacFarlane
c82ee315de DocBook reader: properly handle title in section element.
Previously we just got `section_title` for section (though sect1, sect2,
etc. were handled properly).  Closes #4526.
2018-04-08 16:51:01 -07:00
Alexander Krotov
17b0499516 Muse reader: add support for Text:Amuse multiline headings 2018-04-09 02:05:57 +03:00
Alexander Krotov
bfbc5ee373 Muse reader: remove redundant brackets 2018-04-09 02:05:56 +03:00
Alexander Krotov
e6aeab8cec Fix a comment 2018-04-09 00:02:55 +03:00
Alexander Krotov
c6df281ace Muse reader: replace foldl with foldr 2018-04-08 11:47:10 +03:00
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
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