Commit graph

9670 commits

Author SHA1 Message Date
John MacFarlane
f76e9c1104 Update changelog. 2017-10-29 12:13:03 -07:00
Alexander
3263d0d7c4 Write FB2 lists without nesting blocks inside <p> ()
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
Sascha Wilde
e8be4b0b6d Creole reader ()
* Basic skeleton for creole reader.

No real functionality besides preliminary bold and italics yet.

* Creole: add support for bold/italic with implicit end at paragraph end.

* Creole: add support for headings.

* Creole: add support for tilde escaped chars.

* Basic skeleton for creole reader.

No real functionality besides preliminary bold and italics yet.

* Creole: add support for bold/italic with implicit end at paragraph end.

* Creole: add support for headings.

* Creole: add support for tilde escaped chars.

* Add a test suite for the creole parser

So far this covers only things the parser already supports.

* Added simple parsing of flat unordered lists.

* Added tests for unordered lists in creole.

* First, wrong(!) implementation of sublists.

Fails test, as sublists should not be embedded in a list item!

* Implementation of unordered sublists.

* Added support for ordered lists to creole reader.

* Added utility function to append parsers to Creole reader.

* Creole reader: Fixed list item end detection in sub lists.

* Tests for creole reader: added more tests for lists.

Covering ordered and unordered tests, even mixed.  Tests for
formatting in list items still missing...

* Added "nowiki" blocks.  One exception rule is missing...

* Creole reader: nowiki: implemented exception for curly brackets.

* Creole reader: added inline nowiki.

* Creole reader: added horizontalRule.

* Creole reader: added auto linking of URIs.

* Creole reader: detect horizontalRule as para end.

Used the opportunity for a little refactoring.

* Creole reader: added forced line breaks.

Including test.

* Creole reader: implement wiki links.

* Creole reader: added image support.

* Creole reader: support images as links.

* Creole reader: implemented placeholder -- by simply dropping them.

* Creole reader: added tests for links.

After observing a regression, it was really time...  ;-)

* Creole reader: fixed links with names.

* Creole reader: allow space after first of enclosing tags.

Space after the start of formatting tags are allowed with creole,
e.g. "there is // italic text // in here" is legal.

This problem was discovered using the creole1.0test.txt document from
http://www.wikicreole.org/wiki/Creole1.0TestCases

See l.57:
# // italic item 3 //

* Creole reader: fixed links without names.

* Creole reader: Tests, sorted into groups.

* Creole reader: implemented tables.

* Removed redundant import.

* Creole reader: add correct escaping of links.

* Creole reader: allow handling of e.g. links in parenthesis and quotes.

* Creole reader: Modified disclaimer as most of the code is actually by me.

* Creole reader: Tests: added escaped links.

* Creole reader: preserve leading and trailing space in bold/italic.

* Creole reader: detect tables without a leading blank line.

* Creole Reader: added official creole1.0test.txt as "old" test.

The base document was downloaded from
http://www.wikicreole.org/wiki/Creole1.0TestCases.
The Wiki, and therefore the test document is

Copyright (C) by the contributors.
Some rights reserved, license CC BY-SA.

http://creativecommons.org/licenses/by-sa/1.0/
2017-10-29 13:28:50 -04:00
John MacFarlane
d06bbeeaac Use latest pandoc-citeproc release for binary package. 2017-10-28 10:34:42 -07: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
b7030cd584 Changelog mis-spellings. 2017-10-28 00:05:04 -07:00
John MacFarlane
cb42bb820c Change order of imports to satisfy older ghc. 2017-10-28 00:01:44 -07:00
John MacFarlane
1cd2d04750 Changelog: note on --pdf-engine-opt 2017-10-27 23:49:12 -07:00
John MacFarlane
da445183d2 Update man/pandoc.1. 2017-10-27 23:19:39 -07:00
John MacFarlane
e38d8fbec0 Update date on MANUAL.txt 2017-10-27 23:19:37 -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
dd1785342a Removed unnecessary build-deps. 2017-10-27 21:38:59 -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
7a924ec55a More code simp in pandoc.hs. 2017-10-27 20:58:54 -07:00
John MacFarlane
007236e8eb pandoc.hs - removed some cruft. 2017-10-27 20:39:20 -07:00
John MacFarlane
ff16db1aa3 Automatic reformating by stylish-haskell. 2017-10-27 20:28:29 -07:00
John MacFarlane
bf54a6335a Updated AUTHORS.md and changelog. 2017-10-27 16:29:16 -07:00
John MacFarlane
d039f231cb Improved documentation about markdown and gfm extensions. 2017-10-27 16:24:08 -07:00
John MacFarlane
a2a14f9029 Removed old adjacent_links test for docx reader.
See  for background -- this test blocked the consistent
underline change and was hard to revise, so for now we are
removing it.
2017-10-27 16:09:44 -07:00
hftf
7f8a3c6cb7 Consistent underline for Readers ()
* 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
John MacFarlane
2ddf08641d
Merge pull request from ickc/proofread-2
changelog: minor typo fix
2017-10-27 18:24:32 -04:00
Kolen Cheung
383157f93d changelog: minor typo fix 2017-10-27 01:05:35 -07:00
John MacFarlane
00db1e8737 Merge pull request from ickc/proofread
Proofread on *.md
2017-10-27 02:00:06 -04:00
Kolen Cheung
0b09409385 update years in copyright 2017-10-26 22:57:13 -07:00
Kolen Cheung
3f0ceaf6ee Use CamelCase for JavaScript for uniformity
other instances when javascript is refered to in pandoc is also in CamelCase, the official casing of JavaScript.
2017-10-26 22:43:19 -07:00
Kolen Cheung
4bb54e0a56 .editorconfig: change tests/ to test/ as in 18ab864 2017-10-26 22:34:36 -07:00
Kolen Cheung
8ebf5c5f45 partially undo commit da1e626 2017-10-26 22:27:14 -07:00
Kolen Cheung
c03ce0f1cb partially undo b851c2a 2017-10-26 22:26:55 -07:00
Kolen Cheung
3eb65a5f0f CONTRIBUTING.md: update reference to a deprecated arg 2017-10-26 22:25:37 -07:00
John MacFarlane
535a95076e Update changelog 2017-10-26 20:25:10 -07:00
Kolen Cheung
da1e626500 doc/using-the-pandoc-api.md: proofread (minor) 2017-10-26 18:16:12 -07:00
Kolen Cheung
0e47094f82 doc/filters.md: add more links to pandoc filters in diff. lang. 2017-10-26 18:08:19 -07:00
Kolen Cheung
b851c2acdc CONTRIBUTING.md: general proofread
grammar, uniform style, etc.
2017-10-26 17:56:28 -07:00
Kolen Cheung
33ecec6525 CONTRIBUTING.md: sync a quote from MANUAL.txt 2017-10-26 17:55:45 -07:00
Kolen Cheung
b3607ec306 CONTRIBUTING.md: add links 2017-10-26 17:55:16 -07:00
John MacFarlane
70288a4e39 Fixed filters doc link 2017-10-26 16:59:16 -07:00
John MacFarlane
932fe007fc use skylighting 0.4.2 in stack.pkg.yaml. 2017-10-26 16:37:05 -07:00
John MacFarlane
7d60e9e0eb Bring MANUAL, README, and pandoc.cabal description in sync. 2017-10-26 16:30:37 -07:00
John MacFarlane
a9c9f39e12 Added Sascha Wilde to AUTHORS.md 2017-10-26 16:23:46 -07:00
John MacFarlane
e43408f74e Add creole support to manual. 2017-10-26 16:23:00 -07:00
Sascha Wilde
66fd3247ea Creole reader ()
This is feature complete but not very thoroughly tested yet.
2017-10-26 19:19:28 -04:00
John MacFarlane
76886678a6 Use skylighting 0.4.2.
This prevents the problem with extra space around highlighted
code blocks (closes ).

Note that we no longer put an enclosing div around highlighted
code blocks.  The pre is the outer element, just as for unhighlighted
blocks.
2017-10-26 15:57:55 -07:00
John MacFarlane
9ff04a947e Small fix to API guide. 2017-10-26 11:39:02 -07:00
John MacFarlane
4cc215391c Finshed API guide. Closes . 2017-10-26 11:35:34 -07:00
John MacFarlane
33eee0ceb8 Comment reformat. 2017-10-26 11:35:27 -07:00