summaryrefslogtreecommitdiff
path: root/src/Text/Pandoc
Commit message (Collapse)AuthorAge
...
| * Org reader: Read anchors as empty spansAlbert Krewinkel2014-04-24
| | | | | | | | Anchors (like <<this>>) are parsed as empty spans.
| * Org reader: Recognize plain and angle linksAlbert Krewinkel2014-04-24
| | | | | | | | | | This adds support for plain links (like http://zeitlens.com) and angle links (like <http://moltkeplatz.de>).
| * RST reader: Remove duplicate 'http' in PEP linksAlbert Krewinkel2014-04-24
| | | | | | | | The generated link to PEPs had a duplicate 'http://' in its URL.
* | EPUB writer: Fixed some idrefs to match changes in ids.John MacFarlane2014-04-24
| |
* | Markdown writer: Use proper escapes to avoid unwanted lists.John MacFarlane2014-04-24
| | | | | | | | | | | | Previously we used 0-width spaces, an ugly hack. Closes #980.
* | Render numbers in YAML metadata without decimals when possible.John MacFarlane2014-04-24
| | | | | | | | | | | | The change to aeson > 0.7 caused numbers to be rendered with decimals. This change causes them to be rendered without decimals wehn possible.
* | EPUB writer: include extension in epub ids.John MacFarlane2014-04-23
|/ | | | | | | This fixes a problem with duplicate extensions for fonts and images with the same base name but different extensions. Closes #1254.
* Merge pull request #1256 from tarleb/org-reader-improvementsJohn MacFarlane2014-04-19
|\ | | | | Org reader improvements
| * Org reader: Allow for compact definition listsAlbert Krewinkel2014-04-19
| | | | | | | | | | Use `Text.Pandoc.Shared.compactify'DL` to allow for compact definition lists.
| * Move `compactify'DL` from Markdown reader into SharedAlbert Krewinkel2014-04-19
| | | | | | | | | | | | The function `compactify'DL`, used to change the final definition item of a definition list into a `Plain` iff all other items are `Plain`s as well, is useful in many parsers and hence moved into Text.Pandoc.Shared.
| * Org reader: Fix parsing of footnotesAlbert Krewinkel2014-04-19
| | | | | | | | | | | | Footnotes can consist of multiple blocks and end only at a header or at the beginning of another footnote. This fixes the previous behavior, which restricted notes to a single paragraph.
| * 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