summaryrefslogtreecommitdiff
path: root/src
Commit message (Collapse)AuthorAge
* ICML writer: added figure handling, closes #2590mb212015-12-16
|
* ICML writer: removed redundant import.John MacFarlane2015-12-13
|
* Merge pull request #2570 from mb21/rst-reader-imgattrsJohn MacFarlane2015-12-13
|\ | | | | Image attributes
| * ODT/OpenDocument writer: improved image attributesmb212015-12-13
| | | | | | | | | | - support for percentage widths/heights - use Attr instead of title to get dimensions from ODT walker to writeOpenDocument
| * Docx reader: image attributesmb212015-12-13
| |
| * new function to extract multiple properties at once in CSS.hsmb212015-12-13
| | | | | | | | and use it in Textile reader
| * RST reader: image attributesmb212015-12-13
| |
* | Fixed ICML image syntax for local files.John MacFarlane2015-12-13
| | | | | | | | | | | | | | | | | | | | | | `file:filename` rather than `file://./filename`. I think this is right; it matches what we had before with people actually using the ICML writer, and seems to match examples in the spec. I don't have a copy of InDesign I can test on, though. @DigitalPublishingToolkit and @mb21, can you have a look?
* | Use posix path separators in ICML link URIs.John MacFarlane2015-12-13
|/ | | | Closes #2589.
* AsciiDoc writer: support anchors in spans with id elements.John MacFarlane2015-12-13
|
* AsciiDoc writers: Add anchors on Div elements.John MacFarlane2015-12-13
| | | | | | | This partially addresses jgm/pandoc-citeproc#143. It does not use the native asciidoc syntax for citations, but it does get the links to individual citations working.
* Implemented `east_asian_line_breaks` extension.John MacFarlane2015-12-12
| | | | | | | | | | | | Text.Pandoc.Options: Added `Ext_east_asian_line_breaks` constructor to `Extension` (API change). This extension is like `ignore_line_breaks`, but smarter -- it only ignores line breaks between two East Asian wide characters. This makes it better suited for writing with a mix of East Asian and non-East Asian scripts. Closes #2586.
* Modified readers to emit SoftBreak when appropriate.John MacFarlane2015-12-12
|
* Restore no wrapping of XML in Docx, ODT.John MacFarlane2015-12-12
| | | | | It's possible that wrapping causes problems; safer to turn it off.
* Fixed cite key parsing regression.John MacFarlane2015-12-12
| | | | | | | We were capturing final colons as in [@foo: bar]; the citation id was being parsed as "@foo:". Closes jgm/pandoc-citeproc#201.
* FB2 writer: support SoftBreak.John MacFarlane2015-12-12
| | | | This was omitted earlier.
* Implemented SoftBreak and new `--wrap` option.John MacFarlane2015-12-11
| | | | | | | | | | | | | | | | Added threefold wrapping option. * Command line option: deprecated `--no-wrap`, added `--wrap=[auto|none|preserve]` * Added WrapOption, exported from Text.Pandoc.Options * Changed type of writerWrapText in WriterOptions from Bool to WrapOption. * Modified Text.Pandoc.Shared functions for SoftBreak. * Supported SoftBreak in writers. * Updated tests. * Updated README. Closes #1701.
* Markdown reader: parse soft break as SoftBreak.John MacFarlane2015-12-11
|
* Fixed Emoji character definitions.John MacFarlane2015-12-04
| | | | | | There were many bugs in the definitions. Closes #2523.
* Markdown reader: Improved pipe table relative widths.John MacFarlane2015-12-03
| | | | | | | | | | | | Previously pipe table columns got relative widths (based on the header underscore lines) when the source of one of the rows was greater in width than the column width. This gave bad results in some cases where much of the width of the row was due to nonprinting material (e.g. link URLs). Now pandoc only looks at printable width (the width of a plain string version of the source), which should give better results. Thanks to John Muccigrosso for bringing up the issue.
* Add support to GAPRaniere Silva2015-12-03
|
* Textile Reader: image attributesmb212015-12-03
| | | | closes #2515
* Parse CSS that doesn't contain the optional semicolonmb212015-12-02
|
* Docx writer: better handling of PDF images.John MacFarlane2015-12-01
| | | | | | | | | | Previously we tried to get the image size from the image even if an explicit size was specified. Since we still can't get image size for PDFs, this made it impossible to use PDF images in docx. Now we don't try to get the image size when a size is already explicitly specified.
* Markdown writer: use raw HTML for link/image attributes whenJohn MacFarlane2015-11-24
| | | | | | the `link_attributes` extension is unset and `raw_html` is set. Closes #2554.
* Allow pipe tables with no body rows.John MacFarlane2015-11-24
| | | | | | Previously this raised a runtime error. Closes #2556.
* LaTeX reader: Improved smart quote parsing.John MacFarlane2015-11-24
| | | | | This fixes redering of unmatched quotes. Closes #2555.
* Improved fetchItem so that C:/Blah/Blah.jpg isn't treated as URL.John MacFarlane2015-11-24
| | | | | | | | | The Haskell URI parsing routines will accept "C:" as a scheme, so we rule that out manually. This helps with `--self-contained` and absolute Windows paths. See http://stackoverflow.com/questions/33899126/rchart-in-markdown-doesnt-render-due-to-invalidurlexception-from-pandoc
* LaTeX reader: Use curly quotes for unmatched `.John MacFarlane2015-11-23
| | | | | | Partially addresses #2555. Note that there's still a problem with the code sample given.
* Beamer writer: mark frame as fragile when it contains verbatim.John MacFarlane2015-11-23
| | | | Closes #1613.
* AsciiDoc writer: Fixed code blocks.John MacFarlane2015-11-23
| | | | Closes #1861.
* Define a `meta-json` variable for all writers.John MacFarlane2015-11-23
| | | | | | | | | | | | | This contains a JSON version of all the metadata, in the format selected for the writer. So, for example, to get just the YAML metadata, you can run pandoc with the following custom template: $meta-json$ Closes #2019. The intent is to make it easier for static site generators and other tools to get at the metadata.
* Docx Reader: Remove DummyListItem typeJesse Rosenthal2015-11-23
| | | | | | | | | | | | | Change 5527465c introduced a `DummyListItem` type in Docx/Parse.hs. In retrospect, this seems like it mixes parsing and iterpretation excessively. What's *really* going on is that we have a list item without and associate level or numeric info. We can decide what to do what that in Docx.hs (treat it like a list paragraph), but the parser shouldn't make that decision. This commit makes what is going on a bit more explicit. `LevelInfo` is now a Maybe value in the `ListItem` type. If it's a Nothing, we treat it as a ListParagraph. If it's a Just, it's a normal list item.
* hlint fixesJohn MacFarlane2015-11-22
|
* hlint fixesJohn MacFarlane2015-11-22
|
* hlint changesJohn MacFarlane2015-11-22
|
* hlint fixes.John MacFarlane2015-11-22
|
* hlint fixes.John MacFarlane2015-11-22
|
* ImageSize: use safeRead instead of readMaybe.John MacFarlane2015-11-21
| | | | readMaybe is only provided in base 4.6+.
* Renamed link attribute extensions.John MacFarlane2015-11-19
| | | | | | | * Old `link_attributes` -> `mmd_link_attributes` * Recently added `common_link_attributes` -> `link_attributes` Note: this change could break some existing workflows.
* Merge branch 'new-image-attributes' of https://github.com/mb21/pandoc into ↵John MacFarlane2015-11-19
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | mb21-new-image-attributes * Bumped version to 1.16. * Added Attr field to Link and Image. * Added `common_link_attributes` extension. * Updated readers for link attributes. * Updated writers for link attributes. * Updated tests * Updated stack.yaml to build against unreleased versions of pandoc-types and texmath. * Fixed various compiler warnings. Closes #261. TODO: * Relative (percentage) image widths in docx writer. * ODT/OpenDocument writer (untested, same issue about percentage widths). * Update pandoc-citeproc.
| * Updated readers, writers and README for link attributemb212015-08-07
| |
| * Updated readers and writers for new image attribute parameter.John MacFarlane2015-08-07
| | | | | | | | (mb21)
| * ICML writer: changed type of `writeICML`.John MacFarlane2015-08-05
| | | | | | | | | | | | | | | | API change: It is now `WriterOptions -> Pandoc -> IO String`. Also handle new image attributes. (mb21)
| * ICML writer: Add Cite style to citations.John MacFarlane2015-08-05
| | | | | | | | (mb21)
| * PDF: Modified for new image size attributes parameter.John MacFarlane2015-08-05
| | | | | | | | (mb21)
| * Parsing: Add `extractIdClass`, modified type of `KeyTable`.John MacFarlane2015-08-05
| | | | | | | | (mb21)
| * ImageSize: Added functions for converting between image dimensions.John MacFarlane2015-08-05
| | | | | | | | (mb21)
| * Text.Pandoc.Options: modifications for image attributes.John MacFarlane2015-07-27
| | | | | | | | | | | | | | | | | | | | | | | | * Added `Ext_common_link_attributes` constructor to `Extension` (for link and image attributes). * Added this to `pandocExtensions` and `phpMarkdownExtraExtensions`. * Added `writerDpi` to `WriterOptions`. * pandoc.hs: Added `--dpi` option. * Updated README for `--dpi` and `common_link_attributes` extension. Patch due to mb21, with some modifications: `writerDpi` is now an `Int` rather than a `Double`.
| * Pretty: comment fix (mb21).John MacFarlane2015-07-25
| |