summaryrefslogtreecommitdiff
path: root/src/Text
Commit message (Collapse)AuthorAge
...
| * Org reader: Fix distinction of images and normal linksAlbert Krewinkel2014-04-19
| | | | | | | | Fixed a false assumption about the precedence of (&&) vs (||).
| * Org reader: Apply captions to code blocks and tablesAlbert Krewinkel2014-04-19
| | | | | | | | | | The `Table` blocktype already takes the caption as an argument, while code blocks are wrapped in a `Div` block together with a labelling `Span`.
| * Org reader: Add support for plain LaTeX fragmentsAlbert Krewinkel2014-04-18
| | | | | | | | | | | | | | | | | | | | This adds support for LaTeX fragments like the following: ``` \begin{equation} \int fg \mathrm{d}x \end{equation} ```
| * Org reader: Fix parsing of loose listsAlbert Krewinkel2014-04-18
| | | | | | | | | | | | Loose lists (i.e. lists with blankline separated items), were parsed as multiple lists, each containing a single item. This patch fixes this issue.
| * Org reader: Support more types of '#+BEGIN_<type>' blocksAlbert Krewinkel2014-04-17
| | | | | | | | | | | | Support for standard org-blocks is improved. The parser now handles "HTML", "LATEX", "ASCII", "EXAMPLE", "QUOTE" and "VERSE" blocks in a sensible fashion.
| * Org reader: Support footnotesAlbert Krewinkel2014-04-17
| |
| * Org reader: introduce Reader environment around Blocks/InlinesAlbert Krewinkel2014-04-16
| | | | | | | | | | This introduces a Reader environment in the style of Text.Pandoc.Parsing.F, but adapted to the Org reader parser.
| * Org reader: Fix code for subexpression parsingAlbert Krewinkel2014-04-16
| |
| * Org reader: Better module description, minor style changesAlbert Krewinkel2014-04-16
| | | | | | | | | | Use module description analogous to the markdown reader's. Use (<$) where it makes sense.
* | Shared: Fixed bug in toRomanNumeral.John MacFarlane2014-04-15
|/ | | | | 9 and numbers ending in 9 would end with "IXIV." Thanks to Jesse Rosenthal. Closes #1249.
* Merge pull request #1240 from neilmayhew/masterJohn MacFarlane2014-04-13
|\ | | | | Docbook output of Line Blocks
| * Improve handling of hard line breaks in Docbook writerNeil Mayhew2014-04-12
| | | | | | | | | | | | | | * Use a <literallayout> for the entire paragraph, not just for the newline character * Don't let LineBreaks inside footnotes influence the enclosing paragraph
* | Merge pull request #1239 from tarleb/org-linebreakJohn MacFarlane2014-04-13
|\ \ | | | | | | Org linebreaks
| * | Org reader: Read linebreaksAlbert Krewinkel2014-04-12
| | | | | | | | | | | | Linebreaks are marked by the string `\\` at the end of a line.
| * | Org writer: Fix output for linebreaksAlbert Krewinkel2014-04-12
| |/ | | | | | | | | Hard linebreaks in Org mode are represented by the string "\\" as the last characters in a line. Adds this feature to the Org-mode writer.
* | Merge pull request #1238 from tarleb/org-figuresJohn MacFarlane2014-04-13
|\ \ | | | | | | Org reader: Add support for figures
| * | Org reader: Add support for figuresAlbert Krewinkel2014-04-12
| |/ | | | | | | Support for figures (images with name and caption) is added.
* / Org reader: Removed ANN pragma.John MacFarlane2014-04-12
|/ | | | | | This relies on Template Haskell, which causes problems in Windows due to libraries with C dependencies. We need to avoid using TH in pandoc code.
* HTML reader: Treat processing instructions & declarations as block.John MacFarlane2014-04-11
| | | | | | | Previously these were treated as inline, and included in paragraph tags in HTML or DocBook output, which is generally not what is wanted. Closes #1233.
* Org reader: Fix parsing of sub-/superscript expressionsAlbert Krewinkel2014-04-11
| | | | | | | This fixes the org-reader's handling of sub- and superscript expressions. Simple expressions (like `2^+10`), expressions in parentheses (`a_(n+1)`) and nested sexp (like `a_(nested()parens)`) are now read correctly.
* MediaWiki reader: Handle table rows containing just an HTML comment.John MacFarlane2014-04-10
| | | | Closes #1230.
* Org reader: Improve code by following HLint recommendationsAlbert Krewinkel2014-04-10
| | | | | HLint's recommendations for better code are applied to the Org-mode reader code.
* Org reader: Support more inline/display math variantsAlbert Krewinkel2014-04-10
| | | | | | | | | | | | Support all of the following variants as valid ways to define inline or display math inlines: - `\[..\]` (display) - `$$..$$` (display) - `\(..\)` (inline) - `$..$` (inline) This closes #1223. Again.
* Merge pull request #1226 from tarleb/org-emphasis-readerJohn MacFarlane2014-04-09
|\ | | | | Org reader: Precise rules for the recognition of markup
| * Org reader: Precise rules for the recognition of markupAlbert Krewinkel2014-04-09
| | | | | | | | | | | | The inline parsers have been rewritten using the org source code as a reference. This fixes a couple of bugs related to erroneous markup recognition.
* | 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