summaryrefslogtreecommitdiff
path: root/src
Commit message (Collapse)AuthorAge
* Textile reader: Improved link parsing.John MacFarlane2014-04-07
| | | | | | | | In particular we now pick up on attributes. Since pandoc links can't have attributes, we enclose the whole link in a span if there are attributes. Closes #1008.
* Merge pull request #1224 from tarleb/org-mathJohn MacFarlane2014-04-07
|\ | | | | Org reader: Read inline math, recognize definition lists
| * Org reader: Support inline math (like $E=mc^2$)Albert Krewinkel2014-04-07
| | | | | | | | Closes #1223.
| * Org reader: Add support for definition listsAlbert Krewinkel2014-04-06
| |
| * Org reader: Minor code clean-upAlbert Krewinkel2014-04-06
| |
* | LaTeX writer: Workaround for level 4-5 headers in quotes.John MacFarlane2014-04-06
| | | | | | | | | | | | | | | | | | These previously produced invalid LaTeX: `\paragraph` or `\subparagraph` in a `quote` environment. This adds an `mbox{}` in these contexts to work around the problem. See http://tex.stackexchange.com/a/169833/22451. Closes #1221.
* | LaTeX reader: handle @{} and p{length} in tabular.John MacFarlane2014-04-06
|/ | | | | | The length is not actually recorded, but at least we get a table. Closes #1180.
* HTML reader: Updated `closes` with rules from HTML5 spec.John MacFarlane2014-04-05
|
* Textile reader: Better support for attributes.John MacFarlane2014-04-05
| | | | | | | | | | Instead of being ignored, attributes are now parsed and included in Span inlines. The output will be a bit different from stock textile: e.g. for `*(foo)hi*`, we'll get `<em><span class="foo">hi</span></em>` instead of `<em class="foo">hi</em>`. But at least the data is not lost.
* Textile reader: Improved treatment of HTML spans (%).John MacFarlane2014-04-05
| | | | Closes #1115.
* Removed whitespace at ends of lines.John MacFarlane2014-04-05
|
* Text.Pandoc.PDF: Ensure that temp directories deleted on Windows.John MacFarlane2014-04-05
| | | | | | The PDF is now read as a strict bytestring, ensuring that process ownership will be terminated, so the temp directory can be deleted. Closes #1192.
* Org reader: Added type signature.John MacFarlane2014-04-05
|
* Merge pull request #1219 from tarleb/org-imagesJohn MacFarlane2014-04-05
|\ | | | | Org-reader: support inline images, clean-up code, fix bugs
| * Org reader: Support inline imagesAlbert Krewinkel2014-04-05
| |
| * Org reader: Provide more language identifier translationsAlbert Krewinkel2014-04-05
| | | | | | | | | | | | | | | | | | | | Org-mode and Pandoc use different language identifiers, marking source code as being written in a certain programming language. This adds more translations from identifiers as used in Org to identifiers used in Pandoc. The full list of identifiers used in Org and Pandoc is available through http://orgmode.org/manual/Languages.html and `pandoc -v`, respectively.
| * Org reader: Fix parsing of nested inlinesAlbert Krewinkel2014-04-05
| | | | | | | | | | | | | | | | Text such as /*this*/ was not correctly parsed as a strong, emphasised word. This was due to the end-of-word recognition being to strict as it did not accept markup chars as part of a word. The fix involves an additional parser state field, listing the markup chars which might be parsed as part of a word.
| * Org reader: Use specialized org parser stateAlbert Krewinkel2014-04-05
| | | | | | | | | | | | The default pandoc ParserState is replaced with `OrgParserState`. This is done to simplify the introduction of new state fields required for efficient Org parsing.
| * Org reader: Slight cleaning of table parsing codeAlbert Krewinkel2014-04-05
| |
* | Shared.openURL: Set proxy with value of http_proxy env variable.John MacFarlane2014-04-05
| | | | | | | | | | | | | | Note: proxies with non-root paths are not supported, because of limitations in http-conduit. Closes #1211.
* | DocBook reader: Better treatment of formalpara.John MacFarlane2014-04-04
| | | | | | | | | | | | | | We now emit the title (if present) as a separate paragraph with boldface text. Closes #1215.
* | DocBook reader: set metadata "author" not "authors"John MacFarlane2014-04-04
| |
* | Removed trailing whitespace.John MacFarlane2014-04-04
| |
* | DocBook reader: set "author" not "authors".John MacFarlane2014-04-04
| |
* | Added recognition of authorgroup element and releaseinfo element to DocBook ↵Matthew Pickering2014-04-04
| | | | | | | | | | | | reader. Closes #1214
* | Converted current meta information parsing in DocBook to a more extensible ↵Matthew Pickering2014-04-04
| | | | | | | | version which is aware of the more recent meta representation.
* | LaTeX writer: handle line breaks in simple table cells.John MacFarlane2014-04-04
| | | | | | | | Closes #1217.
* | Correctly handle UTF-8 in custom lua scripts. Closes #1189.John MacFarlane2014-04-04
| |
* | Custom writer: read lua script as UTF-8.John MacFarlane2014-04-04
|/ | | | This should fix #1189.
* MediaWiki reader: Fixed bug in certain nested lists.John MacFarlane2014-04-01
| | | | | | | The bug: If a level 2 list was followed by a level 1 list, the first item of the level 1 list would be lost. Closes #1213.
* HTML reader: idiomatic rewriting for clarity.John MacFarlane2014-04-01
|
* Changed the smart punctuation parser to return Inlines rather than an Inline ↵Matthew Pickering2014-04-01
| | | | element and updated files accordingly
* Converted HTML reader to use builder. Fixes #1162.Matthew Pickering2014-04-01
|
* Bugfix for #1175 and convert textile reader to use builder.Matthew Pickering2014-04-01
| | | | | | | | | | | | | | | The reader did not correctly parse inline markup. The behavoir is now as follows. (a) The markup must start at the start of a line, be inside previous inline markup or be preceeded by whitespace. (b) The markup can not span across paragraphs (delimited by \n\n) (c) The markup can not be followed by a alphanumeric character. (d) Square brackets can be placed around the markup to avoid having to have white space before it. In order to make these changes it was either necessary to convert the parser to return a list of inlines or to convert the whole reader to use the builder. The latter approach whilst more work makes a bit more sense as it becomes easy to arbitarily append and prepend elements without changing the type. Tests are accordingly updated in a later commit to reflect the different normalisation behavoir specified by the builder monoid.
* Make --toc-depth work well with books in latex/pdf output.John MacFarlane2014-03-31
| | | | Closes #1210.
* Markdown writer: Use longer backtick fences if needed.John MacFarlane2014-03-30
| | | | | | | | | | | If the content contains a backtick fence and there are attributes, make sure longer fences are used to delimit the code. Note: This works well in pandoc, but github markdown is more limited, and will interpret the first string of three or more backticks as ending the code block. Closes #1206.
* LaTeX reader: Better handling of figure and table with caption.John MacFarlane2014-03-25
| | | | | | | We now look for a \caption inside the environment; if one is found, it is attached to the graphic or tabular found there. Closes #1204.
* Parsing: Added stateCaption.John MacFarlane2014-03-25
| | | | This is primarily for use in the LaTeX reader, so far.
* Revert "LaTeX reader: Added LPState."John MacFarlane2014-03-25
| | | | This reverts commit 82ddec698e782fef83dcd1b1fba79cd3b698c717.
* LaTeX reader: Added LPState.John MacFarlane2014-03-25
| | | | Plan is to use this instead of ParserState in LP.
* Parsing: Added HasMacros, simplified other typeclasses.John MacFarlane2014-03-25
| | | | | Removed updateHeaderMap, setHeaderMap, getHeaderMap, updateIdentifierList, setIdentifierList, getIdentifierList.
* Whitespace change, and note:John MacFarlane2014-03-25
| | | | | Contrary to the previous commit message, there was no API change, since Text.Pandoc.Parsing is not an exposed module.
* API changes to HasReaderOptions, HasHeaderMap, HasIdentifierList.John MacFarlane2014-03-25
| | | | | | | | | | | | | | | | | | | | | | | | | | | Previously these were typeclasses of monads. They've been changed to be typeclasses of states. This ismplifies the instance definitions and provides more flexibility. This is an API change! However, it should be backwards compatible unless you're defining instances of HasReaderOptions, HasHeaderMap, or HasIdentifierList. The old getOption function should work as before (albeit with a more general type). The function askReaderOption has been removed. extractReaderOptions has been added. getOption has been given a default definition. In HasHeaderMap, extractHeaderMap and updateHeaderMap have been added. Default definitions have been given for getHeaderMap, putHeaderMap, and modifyHeaderMap. In HasIdentifierList, extractIdentifierList and updateIdentifierList have been added. Default definitions have been given for getIdentifierList, putIdentifierList, and modifyIdentifierList. The ultimate goal here is to allow different parsers to use their own, tailored parser states (instead of ParserState) while still using shared functions.
* LaTeX reader: Better handling of "table" environment.John MacFarlane2014-03-25
| | | | | Positioning options no longer rendered verbatim. Partially addresses #1204.
* RTF writer: Fixed tables cells containing paragraphs.John MacFarlane2014-03-24
| | | | This moves \intbl after \pard.
* Merge pull request #1068 from jaimeMF/mw-images-langsJohn MacFarlane2014-03-24
|\ | | | | MediaWiki reader: Accept image links in more languages
| * MediaWiki reader: Accept image links in more languagesJaime Marquínez Ferrándiz2013-11-24
| | | | | | | | In some of the Wikipedia versions the local version of 'File' is used (for example 'Archivo' in Spanish)
* | Parsing: Make F an instance of Applicative. Closes #1138.John MacFarlane2014-03-24
| |
* | Markdown reader: Fixed regression on line breaks in strict mode.John MacFarlane2014-03-24
| | | | | | | | Closes #1203.
* | PDF: Changes to error reporting, to handle non-UTF8 error output.John MacFarlane2014-03-19
| |