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
mb21
8d7ce0fdf0
HTML Writer: consistently use dashed class-names
...
see #3556
2017-10-31 10:40:16 +01:00
Alexander Krotov
94d02a6efa
FB2 writer: make bullet lists consistent with ordered lists
...
Previously bullet lists interacted in odd way with ordered lists.
For example, bullet lists nested in ordered list had incorrect
indentation. Besides that, indentation with spaces is not rendered
by FBReader and fbless. To avoid this problem, bullet lists are
indented by appending bullets to marker just the same way it is
done for ordered lists.
2017-10-31 11:35:47 +03:00
John MacFarlane
c0e51c5710
EPUB writer: fixed filepaths for nonstandard epub-subdirectory values.
2017-10-30 17:43:08 -07:00
John MacFarlane
599d4aa032
EPUB writer fixes:
...
- Ensure that epub2 is recognized as a non-text format,
so that a template is used.
- Don't include "prefix" attribute for ibooks for epub2.
It doesn't validate.
- Fix stylesheet paths; previously we had an incorrect
stylesheet path for the cover page and nav page.
2017-10-30 17:25:15 -07:00
John MacFarlane
90597fe292
LaTeX reader: insert space when needed in macro expansion.
...
Sometimes we need to insert a space after a control sequence
to prevent it merging with a following letter.
Closes #4007 .
2017-10-30 11:51:49 -07:00
John MacFarlane
272b833ad5
Allow unbraced arguments for macros.
...
See #4007 .
2017-10-30 11:35:40 -07:00
John MacFarlane
601a28fd36
Allow body of macro definition to be unbraced.
...
e.g.
\newcommand\arrow\to
See #4007 .
2017-10-30 10:59:52 -07:00
John MacFarlane
1e1a7a9b83
Fixed warnings.
2017-10-29 15:19:49 -07:00
John MacFarlane
6a1476e7e2
Export all of Text.Pandoc.Class from Text.Pandoc.
2017-10-29 15:00:49 -07:00
John MacFarlane
95ccbdaac2
Removed useless notes state in DokuWiki writer.
2017-10-29 14:55:22 -07:00
John MacFarlane
52ee19a825
Source code reformatting.
2017-10-29 14:29:32 -07:00
John MacFarlane
f270dd9b18
hlint suggestions.
2017-10-29 14:18:06 -07:00
John MacFarlane
271e1fe2f1
More hlint.
2017-10-29 13:19:15 -07:00
John MacFarlane
9ef4ad2e20
Small reformat.
2017-10-29 13:01:04 -07:00
John MacFarlane
b18dbfe792
Use uncurry.
2017-10-29 12:58:41 -07:00
John MacFarlane
8e5e8746d8
More hlint fixes.
2017-10-29 12:45:37 -07:00
Alexander
3263d0d7c4
Write FB2 lists without nesting blocks inside <p> ( #4004 )
...
According to FB2 XML schema <empty-line /> cannot be placed inside
<p>. Linux FBReader can't display such paragraphs, e.g. any "loose"
lists produced by pandoc prior to this commit. Besides that,
FB2 writer placed <p> inside <p> when writing nested lists,
this commit fixes the bug.
Also this commit removes leading non-breaking space from ordered
lists for consistency with bullet lists.
Definition lists are not affected at all.
2017-10-29 14:46:44 -04:00
John MacFarlane
47e2719cc3
Fix warning for older GHC versions.
2017-10-28 09:56:20 -07:00
John MacFarlane
b39f782c8d
Try to fix imports for older ghc.
2017-10-28 00:09:23 -07:00
John MacFarlane
cb42bb820c
Change order of imports to satisfy older ghc.
2017-10-28 00:01:44 -07:00
John MacFarlane
cbcb9b36c0
hlint suggestions.
2017-10-27 23:13:55 -07:00
John MacFarlane
8481298357
Don't rely on syb when we don't need to.
2017-10-27 21:44:22 -07:00
John MacFarlane
b201a8aa58
hlint changes.
2017-10-27 21:32:53 -07:00
John MacFarlane
f3e901c29d
hlint suggestions.
2017-10-27 21:26:16 -07:00
John MacFarlane
be7a29e9b9
hlint suggestions.
2017-10-27 21:11:26 -07:00
John MacFarlane
e77d08e439
hlint suggestions.
2017-10-27 21:07:47 -07:00
John MacFarlane
ff16db1aa3
Automatic reformating by stylish-haskell.
2017-10-27 20:28:29 -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
Kolen Cheung
0b09409385
update years in copyright
2017-10-26 22:57:13 -07: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
John MacFarlane
33eee0ceb8
Comment reformat.
2017-10-26 11:35:27 -07:00
John MacFarlane
424e94bd45
makePDF: add argument for pdf options, remove writerPdfArgs.
...
- Removed writerPdfArgs from WriterOptions (API change).
- Added parameter for pdf args to makePDF.
2017-10-26 11:11:45 -07:00
John MacFarlane
23fbf8a533
Text.Pandoc.App: export applyFilters, applyLuaFilters. (API change)
2017-10-24 22:46:06 -07:00
John MacFarlane
f82bcc2bf3
Added some haddock docs for Text.Pandoc.Class functions.
2017-10-24 22:12:05 -07:00
John MacFarlane
ebc801cfc5
HTML reader: close td/th should close any open block tag...
...
Closes #3991 .
2017-10-24 14:45:43 -07:00