summaryrefslogtreecommitdiff
path: root/src
Commit message (Collapse)AuthorAge
* LaTeX reader: parse tikzpicture as raw verbatim environment...John MacFarlane2017-05-24
| | | | | | | | | if `raw_tex` extension is selected. Otherwise skip with a warning. This is better than trying to parse it as text! Closes #3692.
* Logging: Made SkippedContent WARNING not INFO.John MacFarlane2017-05-24
|
* HTML reader: Add `details` tag to list of block tags.John MacFarlane2017-05-24
| | | | Closes #3694.
* RST reader: reformatting (code line length).John MacFarlane2017-05-23
|
* RST Reader: parse list table directive (#3688)keiichiro shikano2017-05-23
| | | | Closes #3432.
* Fixed handling of soft hyphen (0173) in docx writer.John MacFarlane2017-05-23
| | | | Closes #3691.
* Shared.isURI: allow uppercase versions of known schemes.John MacFarlane2017-05-23
|
* Shared: Provide custom isURI that rejects unknown schemes [isURI]Albert Krewinkel2017-05-23
| | | | | | | | | | | | | | | | | | | 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.
* Let `--eol` take `native` as an argument.John MacFarlane2017-05-22
| | | | | Add `Native` to the `LineEnding` type. Make `optEol` a `Native` rather than `Maybe Native`.
* Move indentWith to Text.Pandoc.Parsing (#3687)Alexander Krotov2017-05-22
|
* Text.Pandoc.App: ToJSON and FromJSON instances for Opts.John MacFarlane2017-05-21
| | | | | This can be used e.g. to pass options via web interface, such as trypandoc.
* Finished implemtation of `--resource-path`.John MacFarlane2017-05-21
| | | | | | * Default is just working directory. * Working directory must be explicitly specifide if `--resource-path` option is used.
* PDF: Got --resource-path working with pdf output.John MacFarlane2017-05-20
| | | | See #852.
* PDF: better error message for non-converted svg images.John MacFarlane2017-05-20
|
* RST reader: make use of anyLineNewline (#3686)Alexander Krotov2017-05-20
|
* Improve SVG image size code.Marc Schreiber2017-05-20
| | | | | | | The old code made some unwise assumptions about how the svg file would look. See #3580.
* PDF: Refactoring, makePDF is now in PandocIO [API change].John MacFarlane2017-05-20
|
* Added `--resource-path=SEARCHPATH` command line option.John MacFarlane2017-05-20
| | | | | | | | | | | | | | | | 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.
* SelfContained: handle @import with quoted string.John MacFarlane2017-05-20
|
* SelfContained: fixed problem with embedded fonts.John MacFarlane2017-05-20
| | | | | | | | | | | | 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.
* RST writer: add empty comments when needed...John MacFarlane2017-05-19
| | | | | | | to avoid including a blocquote in the indented content of a preceding block. Closes #3675.
* Org reader: fix smart parsing behaviorAlbert Krewinkel2017-05-18
| | | | | | | | | | | | | | | | Parsing of smart quotes and special characters can either be enabled via the `smart` language extension or the `'` and `-` export options. Smart parsing is active if either the extension or export option is enabled. Only smart parsing of special characters (like ellipses and en and em dashes) is enabled by default, while smart quotes are disabled. This means that all smart parsing features will be enabled by adding the `smart` language extension. Fine-grained control is possible by leaving the language extension disabled. In that case, smart parsing is controlled via the aforementioned export OPTIONS only. Previously, all smart parsing was disabled unless the language extension was enabled.
* Don't render LaTeX images with data: URIs.John MacFarlane2017-05-18
| | | | | | | LaTeX can't handle these. Note that --extract-media can be used when the input contains data: URIs. Closes #3636.
* Docx writer: Change FigureWithCaption to CaptionedFigure (#3658)Ian2017-05-18
| | | | Edit styles.xml as part of the fix for #3656
* Don't double extract images from docx.John MacFarlane2017-05-18
| | | | | | | | | | | This fixes a regression that was introduced when `--extract-media` was generalized to work with any input format. We were getting two versions of each image extracted from a docx, one with a hash, one with the original filename, though only the hash one was used. This patch restores the original behavior (using the original filename). Pointed out in comments on #3674. Thanks to @laperouse.
* Markdown: allow attributes in reference links to start on next line.John MacFarlane2017-05-18
| | | | This addresses a subsidiary issue in #3674.
* Add `--eol` flag and writer option to control line endings.Stefan Dresselhaus2017-05-18
| | | | | | | | | | | | * Add `--eol=crlf|lf` CLI option. * Add `optEol` to `WriterOptions` [API change] * In `Text.Pandoc.UTF8`, add new functions parameterized on `Newline`: `writeFileWith`, `putStrWith`, `putStrLnWith`, `hPutStrWith`, `hPutStrLnWith`. [API change] * Document option in MANUAL.txt. Closes #3663. Closes #2097.
* Markdown writer: Fixed duplicated reference linksJohn MacFarlane2017-05-17
| | | | | | | with `--reference-links` and `--reference-location=section`. Also ensure that there are no empty link references `[]`. Closes #3674.
* Merge pull request #3676 from labdsf/space-charJohn MacFarlane2017-05-17
|\ | | | | Txt2Tags parser: newline is not indentation
| * Txt2Tags parser: newline is not indentationAlexander Krotov2017-05-17
| | | | | | | | space parses '\n', while spaceChar parses only ' ' and '\t'
* | Merge pull request #3677 from labdsf/anylinenewlineJohn MacFarlane2017-05-17
|\ \ | | | | | | Move anyLineNewline to Parsing.hs
| * | Move anyLineNewline to Parsing.hsAlexander Krotov2017-05-17
| |/
* | Org reader: replace `sequence . map` with `mapM`Albert Krewinkel2017-05-16
| |
* | Org reader: put tree parsing code into dedicated moduleAlbert Krewinkel2017-05-16
| |
* | Org reader: add basic file inclusion mechanismAlbert Krewinkel2017-05-14
| | | | | | | | | | | | | | | | | | Support for the `#+INCLUDE:` file inclusion mechanism was added. Recognized include types are *example*, *export*, *src*, and normal org file inclusion. Advanced features like line numbers and level selection are not implemented yet. Closes: #3510
* | Parsing: add `insertIncludedFilesF` which returns F blocksAlbert Krewinkel2017-05-14
| | | | | | | | | | The `insertIncludeFiles` function was generalized and renamed to `insertIncludedFiles'`; the specialized versions are based on that.
* | Parsing: introduce `HasIncludeFiles` type classAlbert Krewinkel2017-05-14
| | | | | | | | | | The `insertIncludeFile` function is generalized to work with all parser states which are instances of that class.
* | Parsing: replace partial with total functionAlbert Krewinkel2017-05-14
|/ | | | | Calling `tail` on an empty list raises an exception, while calling the otherwise equivalent `drop 1` will return the empty list again.
* Merge pull request #3671 from WUUUGI/horizont-spacingJohn MacFarlane2017-05-16
|\ | | | | Added support for horizontal spacing in LaTeX
| * Added support for horizontal spacing in LaTeX: parse \, to \8198 (six-per-em ↵Henri Werth2017-05-15
| | | | | | | | space)
* | Textile reader: fix bug for certain links in table cells.John MacFarlane2017-05-15
| | | | | | | | Closes #3667.
* | Update dates in copyright noticesAlbert Krewinkel2017-05-13
|/ | | | | This follows the suggestions given by the FSF for GPL licensed software. <https://www.gnu.org/prep/maintain/html_node/Copyright-Notices.html>
* Add haddock module description to FB2 writerAlbert Krewinkel2017-05-13
| | | | Copyright, maintainer etc. were missing in haddock docs for this module.
* Change maintainer line in Org writer moduleAlbert Krewinkel2017-05-13
|
* Replace `repeat' and `take' with `replicate' once moreAlexander Krotov2017-05-12
|
* Combine grid table parsersAlbert Krewinkel2017-05-11
| | | | | | | | | | | | | | | The grid table parsers for markdown and rst was combined into one single parser, slightly changing parsing behavior of both parsers: - The markdown parser now compactifies block content cell-wise: pure text blocks in cells are now treated as paragraphs only if the cell contains multiple paragraphs, and as plain blocks otherwise. Before, this was true only for single-column tables. - The rst parser now accepts newlines and multiple blocks in header cells. Closes: #3638
* Markdown writer: missing \n (#3647)David A Roberts2017-05-07
|
* Muse writer: Indent tables with one space (#3649)Alexander Krotov2017-05-07
| | | It is required to trigger Muse table rendering.
* Rename fillMedia -> fillMediaBag.John MacFarlane2017-05-07
|
* PDF: use fillMedia and extractMedia to extract media to tmp dir.John MacFarlane2017-05-07
| | | | | This reduces code duplication. We should be able to do something similar in ODT, Docx, EPUB writers.