Age | Commit message (Collapse) | Author | Files | Lines | |
---|---|---|---|---|---|
2014-04-19 | Move `compactify'DL` from Markdown reader into Shared | Albert Krewinkel | 1 | -17/+0 | |
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. | |||||
2014-04-19 | Org reader: Fix parsing of footnotes | Albert Krewinkel | 1 | -2/+6 | |
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. | |||||
2014-04-19 | Org reader: Fix distinction of images and normal links | Albert Krewinkel | 1 | -2/+2 | |
Fixed a false assumption about the precedence of (&&) vs (||). | |||||
2014-04-19 | Org reader: Apply captions to code blocks and tables | Albert Krewinkel | 1 | -40/+94 | |
The `Table` blocktype already takes the caption as an argument, while code blocks are wrapped in a `Div` block together with a labelling `Span`. | |||||
2014-04-18 | Org reader: Add support for plain LaTeX fragments | Albert Krewinkel | 1 | -1/+40 | |
This adds support for LaTeX fragments like the following: ``` \begin{equation} \int fg \mathrm{d}x \end{equation} ``` | |||||
2014-04-18 | Org reader: Fix parsing of loose lists | Albert Krewinkel | 1 | -4/+7 | |
Loose lists (i.e. lists with blankline separated items), were parsed as multiple lists, each containing a single item. This patch fixes this issue. | |||||
2014-04-17 | Org reader: Support more types of '#+BEGIN_<type>' blocks | Albert Krewinkel | 1 | -7/+34 | |
Support for standard org-blocks is improved. The parser now handles "HTML", "LATEX", "ASCII", "EXAMPLE", "QUOTE" and "VERSE" blocks in a sensible fashion. | |||||
2014-04-17 | Org reader: Support footnotes | Albert Krewinkel | 1 | -2/+64 | |
2014-04-16 | Org reader: introduce Reader environment around Blocks/Inlines | Albert Krewinkel | 1 | -130/+176 | |
This introduces a Reader environment in the style of Text.Pandoc.Parsing.F, but adapted to the Org reader parser. | |||||
2014-04-16 | Org reader: Fix code for subexpression parsing | Albert Krewinkel | 1 | -21/+4 | |
2014-04-16 | Org reader: Better module description, minor style changes | Albert Krewinkel | 1 | -6/+6 | |
Use module description analogous to the markdown reader's. Use (<$) where it makes sense. | |||||
2014-04-13 | Merge pull request #1239 from tarleb/org-linebreak | John MacFarlane | 1 | -0/+4 | |
Org linebreaks | |||||
2014-04-13 | Merge pull request #1238 from tarleb/org-figures | John MacFarlane | 1 | -8/+49 | |
Org reader: Add support for figures | |||||
2014-04-12 | Org reader: Removed ANN pragma. | John MacFarlane | 1 | -3/+0 | |
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. | |||||
2014-04-12 | Org reader: Read linebreaks | Albert Krewinkel | 1 | -0/+4 | |
Linebreaks are marked by the string `\\` at the end of a line. | |||||
2014-04-12 | Org reader: Add support for figures | Albert Krewinkel | 1 | -8/+49 | |
Support for figures (images with name and caption) is added. | |||||
2014-04-11 | HTML reader: Treat processing instructions & declarations as block. | John MacFarlane | 1 | -5/+9 | |
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. | |||||
2014-04-11 | Org reader: Fix parsing of sub-/superscript expressions | Albert Krewinkel | 1 | -10/+37 | |
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. | |||||
2014-04-10 | MediaWiki reader: Handle table rows containing just an HTML comment. | John MacFarlane | 1 | -1/+2 | |
Closes #1230. | |||||
2014-04-10 | Org reader: Improve code by following HLint recommendations | Albert Krewinkel | 1 | -20/+24 | |
HLint's recommendations for better code are applied to the Org-mode reader code. | |||||
2014-04-10 | Org reader: Support more inline/display math variants | Albert Krewinkel | 1 | -2/+26 | |
Support all of the following variants as valid ways to define inline or display math inlines: - `\[..\]` (display) - `$$..$$` (display) - `\(..\)` (inline) - `$..$` (inline) This closes #1223. Again. | |||||
2014-04-09 | Merge pull request #1226 from tarleb/org-emphasis-reader | John MacFarlane | 1 | -120/+260 | |
Org reader: Precise rules for the recognition of markup | |||||
2014-04-09 | Org reader: Precise rules for the recognition of markup | Albert Krewinkel | 1 | -120/+260 | |
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. | |||||
2014-04-07 | Textile reader: Improved link parsing. | John MacFarlane | 1 | -19/+15 | |
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. | |||||
2014-04-07 | Merge pull request #1224 from tarleb/org-math | John MacFarlane | 1 | -37/+53 | |
Org reader: Read inline math, recognize definition lists | |||||
2014-04-07 | Org reader: Support inline math (like $E=mc^2$) | Albert Krewinkel | 1 | -6/+16 | |
Closes #1223. | |||||
2014-04-06 | LaTeX reader: handle @{} and p{length} in tabular. | John MacFarlane | 1 | -2/+3 | |
The length is not actually recorded, but at least we get a table. Closes #1180. | |||||
2014-04-06 | Org reader: Add support for definition lists | Albert Krewinkel | 1 | -1/+16 | |
2014-04-06 | Org reader: Minor code clean-up | Albert Krewinkel | 1 | -30/+21 | |
2014-04-05 | HTML reader: Updated `closes` with rules from HTML5 spec. | John MacFarlane | 1 | -5/+12 | |
2014-04-05 | Textile reader: Better support for attributes. | John MacFarlane | 1 | -9/+12 | |
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. | |||||
2014-04-05 | Textile reader: Improved treatment of HTML spans (%). | John MacFarlane | 1 | -5/+1 | |
Closes #1115. | |||||
2014-04-05 | Removed whitespace at ends of lines. | John MacFarlane | 1 | -15/+15 | |
2014-04-05 | Org reader: Added type signature. | John MacFarlane | 1 | -0/+1 | |
2014-04-05 | Merge pull request #1219 from tarleb/org-images | John MacFarlane | 1 | -57/+127 | |
Org-reader: support inline images, clean-up code, fix bugs | |||||
2014-04-05 | Org reader: Support inline images | Albert Krewinkel | 1 | -10/+24 | |
2014-04-05 | Org reader: Provide more language identifier translations | Albert Krewinkel | 1 | -1/+8 | |
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. | |||||
2014-04-05 | Org reader: Fix parsing of nested inlines | Albert Krewinkel | 1 | -7/+20 | |
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. | |||||
2014-04-05 | Org reader: Use specialized org parser state | Albert Krewinkel | 1 | -7/+41 | |
The default pandoc ParserState is replaced with `OrgParserState`. This is done to simplify the introduction of new state fields required for efficient Org parsing. | |||||
2014-04-05 | Org reader: Slight cleaning of table parsing code | Albert Krewinkel | 1 | -33/+35 | |
2014-04-04 | DocBook reader: Better treatment of formalpara. | John MacFarlane | 1 | -3/+3 | |
We now emit the title (if present) as a separate paragraph with boldface text. Closes #1215. | |||||
2014-04-04 | DocBook reader: set metadata "author" not "authors" | John MacFarlane | 1 | -1/+1 | |
2014-04-04 | Removed trailing whitespace. | John MacFarlane | 1 | -15/+15 | |
2014-04-04 | DocBook reader: set "author" not "authors". | John MacFarlane | 1 | -3/+3 | |
2014-04-04 | Added recognition of authorgroup element and releaseinfo element to DocBook ↵ | Matthew Pickering | 1 | -9/+16 | |
reader. Closes #1214 | |||||
2014-04-04 | Converted current meta information parsing in DocBook to a more extensible ↵ | Matthew Pickering | 1 | -34/+48 | |
version which is aware of the more recent meta representation. | |||||
2014-04-01 | MediaWiki reader: Fixed bug in certain nested lists. | John MacFarlane | 1 | -1/+2 | |
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. | |||||
2014-04-01 | HTML reader: idiomatic rewriting for clarity. | John MacFarlane | 1 | -5/+4 | |
2014-04-01 | Changed the smart punctuation parser to return Inlines rather than an Inline ↵ | Matthew Pickering | 3 | -5/+3 | |
element and updated files accordingly | |||||
2014-04-01 | Converted HTML reader to use builder. Fixes #1162. | Matthew Pickering | 1 | -109/+126 | |