John MacFarlane
d29ef39f6f
EPUB writer: fix paths for cover image.
...
Closes #4069 .
2017-11-14 20:57:41 -08:00
John MacFarlane
51897937cd
LaTeX reader: allow optional arguments on \footnote
.
...
Closes #4062 .
2017-11-13 21:19:38 -08:00
John MacFarlane
8d6e0e516a
Markdown writer: fix bug with doubled footnotes in grid tables.
...
Closes #4061 .
2017-11-13 21:12:04 -08: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
John MacFarlane
b85921259d
Fix comment that confuses haddock.
2017-11-12 16:51:49 -08:00
John MacFarlane
eeaa3b048c
LaTeX reader: support column specs like *{2}{r}
.
...
This is equivalent to `rr`. We now expand it like a macro.
Closes #4056 .
2017-11-12 14:46:29 -08:00
John MacFarlane
7ba0ae8b4d
LaTeX reader: allow optional args for parbox.
...
See #4056 .
2017-11-12 14:19:58 -08: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
Alexander Krotov
f13f142945
Add emacs extension
2017-11-12 16:06:22 +03:00
John MacFarlane
6094c84b7a
Functor instance to fix ghc 7.8 warning.
2017-11-11 21:13:43 -08:00
John MacFarlane
6174b5bea5
Add lua filter functions to walk inline and block elements.
...
Refactored some code from Text.Pandoc.Lua.PandocModule
into new internal module Text.Pandoc.Lua.Filter.
Add `walk_inline` and `walk_block` in pandoc lua module.
2017-11-11 14:41:11 -08:00
John MacFarlane
fb5ba1bb00
Fixed YAML metadata with "chomp" (|-
).
...
Previously if a YAML block under `|-` contained
a blank line, pandoc would not parse it as metadata.
2017-11-11 10:17:53 -05:00
Alexander Krotov
f501ad031d
MediaWiki reader: hlint
2017-11-11 03:12:15 +03:00
Alexander Krotov
6e832a571b
Txt2Tags reader: hlint
2017-11-10 14:48:11 +03:00
Alexander Krotov
207b3edcb9
Vimwiki reader: hlint
2017-11-10 13:26:39 +03:00
John MacFarlane
1592d38821
Allow fenced code blocks to be indented 1-3 spaces.
...
This brings our handling of them into alignment with
CommonMark's.
Closes #??.
2017-11-09 23:22:44 -05:00
Alexander Krotov
f72d763655
HTML reader: hlint
2017-11-10 02:23:58 +03:00
John MacFarlane
fef5770591
Fix regression with --metadata.
...
It should replace a metadata value set in the document
itself, rather than creating a list including a new value.
Closes #4054 .
2017-11-08 21:54:23 -08:00
John MacFarlane
c6338fa883
EPUB writer: fixed modified paths for raw HTML tags
...
(src, poster, etc.) This had not been updated for the
new EPUB container layout, with a separate text/ subdirectory.
Closes #4050 . Closes #4055 .
2017-11-08 17:07:27 -08:00
John MacFarlane
5a4c0d6a8c
Deprecated ancient HTML math methods.
...
`--latexmathml`,
`--gladtex`,
`--mimetex`,
`--jsmath`
2017-11-07 13:05:06 -08:00
John MacFarlane
b0b90aba62
EPUB writer: fixed EPUB OCF structure.
...
The structure of the EPUBs was messed up, and #3720 was
improperly implemented. This commit fixes things.
2017-11-07 12:24:37 -08:00
John MacFarlane
36449d3ea4
EPUB writer: fix image paths with empty --epub-subdirectory
.
2017-11-07 08:30:52 -08:00
Alexander Krotov
38ad0b3204
Spellcheck comments
2017-11-06 06:56:21 +03:00
John MacFarlane
8e8d7802ee
Logging: issue INFO, not WARNING, if LaTeX .sty file can't be read.
...
Normally this is not a situation requiring a fix from the user,
so a warning is inappropriate.
2017-11-04 17:07:55 -07:00
John MacFarlane
fe42c175eb
Revert "Better indentation under headers in org mode output."
...
This reverts commit 1a81751cef
.
2017-11-04 11:32:47 -07:00
John MacFarlane
1a81751cef
Better indentation under headers in org mode output.
...
See #4036 .
Close examination by org experts needed, to ensure that
nothing breaks.
2017-11-04 11:25:38 -07:00
John MacFarlane
8e53489cbc
Fix strikethrough in gfm writer.
...
Previously we got a crash, because we were trying to print
a native cmark STRIKETHROUGH node, and the commonmark writer
in cmark-github doesn't support this. Work around this by
using a raw node to add the strikethrough delimiters.
Closes #4038 .
2017-11-04 10:35:52 -07:00
John MacFarlane
642d603666
Improved support for columns in HTML.
...
* Move as much as possible to the CSS in the template.
* Ensure that all the HTML-based templates (including epub)
contain the CSS for columns.
* Columns default to 50% width unless they are given a width
attribute.
Closes #4028 .
2017-11-02 20:57:05 -07:00
John MacFarlane
5dfe131ee0
Support lineAnchors
(or line-anchors
) in code blocks, for HTML.
2017-11-02 16:38:06 -07:00
John MacFarlane
856587ff63
Use latest skylighting; ensure no duplicate ids on code lines.
...
The line identifiers are built using the code block's identifier
as a prefix. If the code block has null identifier, we use
"cb1", "cb2", etc.
Closes #4031 .
2017-11-02 16:03:40 -07:00
John MacFarlane
6d00e6e8c3
Fixed revealjs slide column width issues.
...
* Remove "width" attribute which is not allowed on div.
* Remove space between `<div class="column">` elements,
since this prevents columns whose widths sum to 100%
(the space takes up space).
Closes #4028 .
2017-11-02 10:23:04 -07:00
Alexander Krotov
a553baf3a4
hlint
2017-11-02 15:28:53 +03:00
John MacFarlane
52e372b71d
SelfContained: use base64 for css links with media attribute.
...
This fixes `--self-contained` with s5. Closes #4026 .
2017-11-01 17:42:33 -07:00
John MacFarlane
ed3d466384
Really fix #3989 .
...
The previous fix only worked in certain cases.
Other cases with `>` in an HTML attribute broke.
2017-11-01 09:27:51 -07:00
Alexander Krotov
00b64f337d
hlint
2017-11-01 14:40:10 +03:00
Alexander Krotov
3cee9c8976
FB2 writer: Add "unrecognised" genre to <title-info>
...
XML schema requires at least one genre.
2017-11-01 13:31:16 +03:00
Alexander Krotov
8a5541dca8
FB2 writer: remove <annotation> from <body>
...
<annotation> is not allowed inside <body> according to FictionBook2 XML schema. Besides that, the same information is already placed inside <description>.
Related bug: #2424
2017-11-01 13:08:52 +03:00
John MacFarlane
9b513b8a7a
Merge pull request #4009 from mb21/html-class-names
...
HTML Writer: consistently use dashed class-names
2017-11-01 00:39:08 -04:00
John MacFarlane
eef8118af0
Merge pull request #4008 from labdsf/fb2-bullets
...
FB2 writer: make bullet lists consistent with ordered lists
2017-11-01 00:38:02 -04:00
John MacFarlane
32f6938605
Properly pass through author metadata in JATS writer.
...
Closes #4020 .
2017-10-31 21:27:08 -07:00
John MacFarlane
fb6e5812bc
Fixed regression in parsing of HTML comments in markdown...
...
and other non-HTML formats (`Text.Pandoc.Readers.HTML.htmlTag`).
The parser stopped at the first `>` character, even if it wasn't
the end of the comment.
Closes #4019 .
2017-10-31 21:14:38 -07:00
John MacFarlane
fd7e3cb18f
Merge pull request #4018 from swilde/creole-fixes
...
Creole Reader: fix lists with triling white space
2017-11-01 00:04:36 -04:00
Sascha Wilde
534e625ace
Creole reader: fixed some minor typos and formatting.
2017-10-31 22:33:58 +01:00
John MacFarlane
0e57b8b85d
Add Millimeter constructor to Dimension in ImageSize.
...
Minor API change.
Now sizes given in 'mm' are no longer converted to 'cm'.
Closes #4012 .
2017-10-31 11:58:43 -07:00
John MacFarlane
5f9f458df3
LaTeX reader: handle %
comment right after command.
...
For example
\emph%
{hi}
2017-10-31 11:31:35 -07:00
John MacFarlane
2a81ff3245
LaTeX/Beamer writer: support "blocks" inside columns and other Divs.
...
Example:
```
<div class="columns">
<div class="column" width="40%">
- Item
</div>
<div class="column" width="60%">
- Item
</div>
</div>
```
Closes #4016 .
2017-10-31 11:07:39 -07:00
John MacFarlane
556c6c2c6d
Markdown reader: make sure fenced div closers work in lists.
...
Previously the following failed:
::: {.class}
1. one
2. two
:::
and you needed a blank line before the closing `:::`.
2017-10-31 10:57:20 -07:00
John MacFarlane
81610144f9
Make fenced_divs
affect the Markdown writer.
...
If `fenced_divs` is enabled, fenced divs will be used.
2017-10-31 10:57:20 -07:00
Sascha Wilde
fa67d6e86f
Creole reader: fixed lists with trailing white space.
2017-10-31 18:55:27 +01:00
Alexander Krotov
a496979c6d
FB2 writer: write blocks outside of <p> in definitions
2017-10-31 20:19:00 +03:00