aboutsummaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
2017-05-28Org reader: Fix cite parsing behaviourHerwig Stuetz2-2/+46
Until now, org-ref cite keys included special characters also at the end. This caused problems when citations occur right before colons or at the end of a sentence. With this change, all non alphanumeric characters at the end of a cite key are ignored. This also adds `,` to the list of special characters that are legal in cite keys to better mirror the behaviour of org-export.
2017-05-28Parsing: `many1Till`: Check for the end condition before parsingHerwig Stuetz4-7/+8
By not checking for the end condition before the first parse, the parser was applied too often, consuming too much of the input. This fixes the behaviour of `testStringWith (many1Till (oneOf "ab") (string "aa")) "aaa"` which before incorrectly returned `Right "a"`. With this change, it instead correctly fails with `Left (PandocParsecError ...)` because it is not able to parse at least one occurence of `oneOf "ab"` that is not `"aa"`. Note that this only affects `many1Till p end` where `p` matches on a prefix of `end`.
2017-05-28Update criterion upper bound.John MacFarlane1-1/+1
2017-05-28RST reader: use anyLineNewline in rawListItem (#3702)Alexander Krotov1-2/+2
2017-05-27Markdown writer: changes to `--reference-links`.John MacFarlane3-17/+110
With `--reference-location` of `section` or `block`, pandoc will now repeat references that have been used in earlier sections. The Markdown reader has also been modified, so that *exactly* repeated references do not generate a warning, only references with the same label but different targets. The idea is that, with references after every block, one might want to repeat references sometimes. Closes #3701.
2017-05-27Pretty: Eq instance for Doc.John MacFarlane1-2/+2
2017-05-27Org reader: subject full doc tree to headline transformationsAlbert Krewinkel3-8/+53
Emacs parses org documents into a tree structure, which is then post-processed during exporting. The reader is changed to do the same, turning the document into a single tree of headlines starting at levelĀ 0. Fixes: #3695
2017-05-26HTML writer: Removed unused parameter in dimensionsToAttributeList.John MacFarlane1-3/+3
2017-05-25Allow em for image height/width in HTML, LaTeX.John MacFarlane5-42/+69
- Export `inEm` from ImageSize [API change]. - Change `showFl` and `show` instance for `Dimension` so extra decimal places are omitted. - Added `Em` as a constructor of `Dimension` [API change]. - Allow `em`, `cm`, `in` to pass through without conversion in HTML, LaTeX. Closes #3450.
2017-05-25Added `spaced_reference_links` extension.John MacFarlane34-216/+1101
This is now the default for pandoc's Markdown. It allows whitespace between the two parts of a reference link: e.g. [a] [b] [b]: url This is now forbidden by default. Closes #2602.
2017-05-25Docx writer: Use Table rather than "Table Normal" for table style.John MacFarlane3-4/+5
"Table Normal" is the default table style and can't be modified. Closes #3275, further testing welcome.
2017-05-25Update command tests to include stderr output.John MacFarlane7-5/+23
2017-05-25Test.Command: put stderr output at front, so it can be tested.John MacFarlane1-3/+3
2017-05-25Markdown reader: warn for notes defined but not used.John MacFarlane3-8/+29
Closes #1718. Parsing.ParserState: Make stateNotes' a Map, add stateNoteRefs.
2017-05-25MediaWiki reader: don't do curly quotes inside `<tt>` contexts.John MacFarlane2-1/+26
Even if `+smart`. See #3585.
2017-05-25MediaWiki reader: Make smart double quotes depend on `smart` extension.John MacFarlane1-1/+3
Closes #3585.
2017-05-24Markdown reader: fixed smart quotes after emphasis.John MacFarlane2-5/+12
E.g. in *foo*'s 'foo' Closes #2228.
2017-05-24LaTeX reader: Fixed failures on \ref{}, \label{} with `+raw_tex`.John MacFarlane1-6/+9
Now these commands are parsed as raw if `+raw_tex`; otherwise, their argument is parsed as a bracketed string.
2017-05-24Makefile: fixed filename for windows package download.John MacFarlane1-1/+1
2017-05-24Revert "appveyor.yml: don't use matrix."John MacFarlane1-9/+5
This reverts commit d4ccd1e001bce84f1bae338cd07d4e8e2e7875cb.
2017-05-24Parsing: Provide parseFromString'.John MacFarlane8-62/+88
This is a verison of parseFromString specialied to ParserState, which resets stateLastStrPos at the end. This is almost always what we want. This fixes a bug where `_hi_` wasn't treated as emphasis in the following, because pandoc got confused about the position of the last word: - [o] _hi_ Closes #3690.
2017-05-24appveyor.yml: don't use matrix.John MacFarlane1-5/+9
2017-05-24LaTeX reader: parse tikzpicture as raw verbatim environment...John MacFarlane1-0/+14
if `raw_tex` extension is selected. Otherwise skip with a warning. This is better than trying to parse it as text! Closes #3692.
2017-05-24Logging: Made SkippedContent WARNING not INFO.John MacFarlane1-1/+1
2017-05-24HTML reader: Add `details` tag to list of block tags.John MacFarlane1-1/+2
Closes #3694.
2017-05-24appveyor: turn off 64-bit build for now.John MacFarlane1-3/+3
2017-05-24appveyor.yml: added fast_finish, fails if either job fails.John MacFarlane1-0/+3
2017-05-23RST reader: reformatting (code line length).John MacFarlane1-23/+47
2017-05-23RST Reader: parse list table directive (#3688)keiichiro shikano2-1/+317
Closes #3432.
2017-05-23Fixed handling of soft hyphen (0173) in docx writer.John MacFarlane1-7/+19
Closes #3691.
2017-05-23Shared.isURI: allow uppercase versions of known schemes.John MacFarlane1-1/+2
2017-05-23Shared: Provide custom isURI that rejects unknown schemes [isURI]Albert Krewinkel16-48/+81
We also export the set of known `schemes`. The new function replaces the function of the same name from `Network.URI`, as the latter did not check whether a scheme is well-known. E.g. MediaWiki wikis frequently feature pages with names like `User:John`. These links were interpreted as URIs, thus turning internal links into global links. This is prevented by also checking whether the scheme of a URI is frequently used (i.e. is IANA registered or an otherwise well-known scheme). Fixes: #2713 Update set of well-known URIs from IANA list All official IANA schemes (as of 2017-05-22) are included in the set of known schemes. The four non-official schemes doi, isbn, javascript, and pmid are kept.
2017-05-22Let `--eol` take `native` as an argument.John MacFarlane2-16/+18
Add `Native` to the `LineEnding` type. Make `optEol` a `Native` rather than `Maybe Native`.
2017-05-22Move indentWith to Text.Pandoc.Parsing (#3687)Alexander Krotov5-21/+13
2017-05-21Text.Pandoc.App: ToJSON and FromJSON instances for Opts.John MacFarlane3-5/+66
This can be used e.g. to pass options via web interface, such as trypandoc.
2017-05-21Finished implemtation of `--resource-path`.John MacFarlane3-5/+11
* Default is just working directory. * Working directory must be explicitly specifide if `--resource-path` option is used.
2017-05-20PDF: Got --resource-path working with pdf output.John MacFarlane1-4/+7
See #852.
2017-05-20PDF: better error message for non-converted svg images.John MacFarlane1-0/+1
2017-05-20RST reader: make use of anyLineNewline (#3686)Alexander Krotov1-2/+1
2017-05-20Improve SVG image size code.Marc Schreiber7-1/+323
The old code made some unwise assumptions about how the svg file would look. See #3580.
2017-05-20PDF: Refactoring, makePDF is now in PandocIO [API change].John MacFarlane1-13/+8
2017-05-20Added `--resource-path=SEARCHPATH` command line option.John MacFarlane2-1/+18
SEARCHPATH is separated by the usual character, depending on OS (: on unix, ; on windows). Note: This does not yet work for PDF output, because the routine that creates PDFs runs outside PandocMonad. (This has to do with its use of inTemporaryDirectory and its interaction with our exceptions.) The best solution would be to figure out how to move the PDF creation routines into PandocMonad. Second-best, just pass an extra parameter in? See #852.
2017-05-20SelfContained: handle @import with quoted string.John MacFarlane1-11/+25
2017-05-20SelfContained: fixed problem with embedded fonts.John MacFarlane1-13/+41
Closes #3629. However, there is still room for improvement. `@import` with following media declaration is not handled. Also `@import` with a simple filename (rather than `url(...)` is not handled.
2017-05-19RST writer: add empty comments when needed...John MacFarlane3-3/+46
to avoid including a blocquote in the indented content of a preceding block. Closes #3675.
2017-05-19appveyor.yml - really fixed artifacts.John MacFarlane1-2/+2
2017-05-19appveyor.yml - fix artifacts.John MacFarlane1-4/+4
2017-05-19appveyor.yml: added comment with instructions to reset build cache.John MacFarlane1-0/+6
2017-05-19Revert "appveyor.yml - reset cache when appveyor.yml changes."John MacFarlane1-2/+2
This reverts commit 8ac2675c2788e4273c46c92e2a224583d51c2ad1.
2017-05-19appveyor.yml - reset cache when appveyor.yml changes.John MacFarlane1-2/+2