John MacFarlane
1ec6a19223
Changed display format for messages.
2017-03-09 10:30:57 +01:00
John MacFarlane
1e78aec88e
HTML writer: info message if 'lang' is unspecified.
...
Closes #3486 .
2017-03-09 10:21:11 +01:00
John MacFarlane
11e57c4d18
Logging: Added NoLangSpecified, use toConstr to avoid boilerplate.
2017-03-09 10:20:30 +01:00
John MacFarlane
239a17a986
HTML writer: fallback to basename rather than Untitled.
2017-03-09 09:41:22 +01:00
John MacFarlane
fd35661646
Remove space at beginning/end of RST code span.
...
Otherwise we get invalid RST. There seems to be no
way to escape the space.
Closes #3496 .
2017-03-08 19:06:32 +01:00
Albert Krewinkel
c91f168fc9
Org reader: disallow tables on list marker lines
...
Fixes : #3499
2017-03-08 15:45:00 +01:00
John MacFarlane
5487190d69
Travis: Remove GHC HEAD build.
...
This pretty much always fails due to dependencies.
2017-03-08 12:57:49 +01:00
John MacFarlane
19ad29f493
Travis: comment out OSX build.
...
This always takes forever to complete.
Since I develop on OSX anyway, it's not so urgent.
2017-03-08 12:57:07 +01:00
John MacFarlane
bcfb77e2ab
Markdown writer: Avoid spurious blanklines at end of document...
...
after tables and list, for example.
2017-03-08 12:47:39 +01:00
John MacFarlane
b6e7bfaf1d
Markdown writer: ensure space before list at top level.
...
Closes #3487 .
2017-03-08 12:42:01 +01:00
John MacFarlane
410991ec6e
Org reader: don't allow tables inside list items.
...
Closes #3499 .
2017-03-08 12:28:13 +01:00
John MacFarlane
2c67101c7d
Added test case for #3497 .
2017-03-08 12:23:01 +01:00
John MacFarlane
2645ce7aca
Markdown writer: escape unordered list markers at beginning of paragraph
...
to avoid false interpretation as a list.
Also handle `|`, and refactor code for escaping `%`.
Closes #3497 .
2017-03-08 12:06:08 +01:00
John MacFarlane
5418f202df
stack.yamls: use lts-8.4 and texmath-0.9.1.1.
2017-03-07 16:47:38 +01:00
John MacFarlane
896affd058
Re-enable support for custom lua writers.
...
Closes #3495 .
2017-03-07 15:27:45 +01:00
John MacFarlane
93a9c09b6b
Speed up Native writer quickcheck tests.
2017-03-07 15:14:36 +01:00
John MacFarlane
69c4602f46
Small change to unbalanced bracket test to speed up test suite.
2017-03-07 15:03:26 +01:00
John MacFarlane
8c55b7b564
Markdown reader: Treat certain environments as inline
...
when they occur without space surrounding them.
E.g. equation, math.
This avoids incorrect vertical space around equations.
Closes #3309 .
Closes #2171 .
See also rstudio/bookdown#358 .
2017-03-07 15:00:32 +01:00
Jakob Voß
69e1b959e0
Clarify that meta-json contains transformed values ( #3491 )
...
Make clear that template variable `meta-json` does not contain plain text values or JSON output format but field values transformed to the selected output format.
2017-03-07 14:31:15 +01:00
John MacFarlane
74afd2974a
Markdown writer: better handling of tables with empty columns.
...
E.g. an HTML table with two cells in the first row and one
in the second (but no row/colspan).
We now calculate the number of columns based on the longest
row (or the length of aligns or widths).
Closes #3337 .
2017-03-06 22:51:28 +01:00
John MacFarlane
9e87114234
LaTeX reader: allow newpage, clearpage, pagebreak in inline contexts
...
as well as block contexts.
Closes #3494 .
2017-03-06 21:49:06 +01:00
John MacFarlane
13698e7968
Markdown writer: Fixed false ordered lists in YAML metadata.
...
Now we properly escape things that would otherwise start ordered
lists, such as
---
title: 1. inline
...
Closes #3492 .
Closes #1685 .
2017-03-06 21:18:32 +01:00
John MacFarlane
ddc2b9024f
LaTeX reader: support all \textXX commands.
...
where XX = rm, tt, up, md, sf, bf.
Spans with a class are used when there is nothing better.
Closes #3488 .
2017-03-05 20:21:29 +01:00
John MacFarlane
e20f55618f
Markdown reader: fixed internal header links.
...
Closes #2397 .
This patch also adds `shortcut_reference_links` to the list
of mmd extensions.
2017-03-05 16:34:47 +01:00
John MacFarlane
aeb11cea4e
Markdown writer: escape initial % in a paragraph...
...
...if the `pandoc_title_blocks` extension is enabled.
Otherwise in a document starting with a literal percent sign
the first line is wrongly interpreted as a title.
Closes #3454 .
2017-03-05 15:28:57 +01:00
John MacFarlane
6530bc4471
LaTeX reader: small improvements in parsing arguments.
2017-03-05 11:17:03 +01:00
John MacFarlane
3ff41fe7f4
LaTeX reader: Handle spaces before \cite arguments.
2017-03-05 11:10:11 +01:00
John MacFarlane
2fee07795c
Added a markdown abbrevation test case.
2017-03-05 10:44:25 +01:00
John MacFarlane
95f2726ee7
Added readerAbbreviations to ParserState.
...
Markdown reader now consults this to determine what is an
abbreviation.
Eventually it will be possible to specify a custom list
(see #256 ).
2017-03-05 10:24:39 +01:00
John MacFarlane
7fc6919f90
Markdown reader: Fixed regression on left-biased union for metadata.
...
When multiple YAML metadata blocks are used, and two define
the same field, the value defined first takes precedence,
according to the manual. This was changed briefly in
ba3ee62323
. This commit
reverts to the original behavior and adds a test case.
2017-03-05 09:28:44 +01:00
John MacFarlane
ba3ee62323
Parse YAML metadata in a context that sees footnotes...
...
defined in the body of the document.
Closes #1279 .
2017-03-05 01:36:40 +01:00
John MacFarlane
14b8aa8c93
Regularized CSS in html/epub/html slide templates.
...
All templates now include `code{white-space: pre-wrap}`
and CSS for `q` if `--html-q-tags` is used.
Previously some templates had `pre` and others `pre-wrap`;
the `q` styles were only sometimes included.
See #3485 .
2017-03-04 23:16:42 +01:00
John MacFarlane
0517cf0bc0
Fixed some loose ends in #1592 .
...
Added test cases.
Fixed HTML reader to parse a span with class "smallcaps" as
SmallCaps.
Fixed Markdown writer to render SmallCaps as a native span
when native spans are enabled.
2017-03-04 23:01:29 +01:00
Mauro Bieg
40d1dc417a
templates: CSS for .smallcaps, closes #1592 ( #3485 )
2017-03-04 22:52:11 +01:00
John MacFarlane
739bf78c37
HTML writer: only issue warning for missing title if --standalone.
2017-03-04 14:50:48 +01:00
John MacFarlane
aa5ae5ff0f
HTML writer: Render SmallCaps as span with smallcaps class.
...
Rather than using a style attribute directly.
This gives the user more flexibility in styling small caps
in CSS.
See #1592 .
2017-03-04 14:46:54 +01:00
John MacFarlane
b64211a547
Use smallcaps class for SmallCaps in CommonMark writer.
...
See #1592 .
2017-03-04 14:43:52 +01:00
John MacFarlane
8f20d7d920
Markdown writer: Use span with class 'smallcaps' for SmallCaps.
...
Instead of a style attribute as before.
See #1592 .
2017-03-04 14:41:45 +01:00
John MacFarlane
0795244458
Markdown reader: treat span with class smallcaps
as SmallCaps.
...
This allows users to specify small caps in Markdown this way:
[my text]{.smallcaps}
See #1592 .
2017-03-04 14:38:09 +01:00
John MacFarlane
738880bfcb
Makefile - removed 'refactor' target.
2017-03-04 13:40:02 +01:00
John MacFarlane
19d86132a8
Makefile: Separate refactor and reformat targets.
...
Removed tools/refactor.sh.
2017-03-04 13:13:12 +01:00
John MacFarlane
e256c8ce17
Stylish-haskell automatic formatting changes.
2017-03-04 13:03:41 +01:00
John MacFarlane
0edfbf1478
Added 'make refactor' using hlint, stylish-haskell.
2017-03-04 12:49:14 +01:00
John MacFarlane
17ce813060
hlint refactoring.
2017-03-04 12:02:16 +01:00
John MacFarlane
beb94c53e9
Add hanging indent to log messages.
...
This makes them easier to read.
2017-03-04 11:26:49 +01:00
John MacFarlane
69b3a369ca
HTML writer: issue warning if no title specified and template used.
...
See #3473 .
2017-03-04 11:14:41 +01:00
John MacFarlane
87764b1c46
Logging: Added NoTitleElement constructor for LogMessage.
2017-03-04 11:13:54 +01:00
John MacFarlane
9925739ba9
Require skylighting 0.3.1.
2017-03-04 10:33:52 +01:00
John MacFarlane
37152f9351
Document that html5 output is polyglot compatible.
2017-03-04 10:12:33 +01:00
John MacFarlane
a99d0c6b42
Merge branch 'master' of github.com:jgm/pandoc
2017-03-04 10:08:51 +01:00