aboutsummaryrefslogtreecommitdiff
path: root/src/Text/Pandoc/Readers
AgeCommit message (Collapse)AuthorFilesLines
2013-04-14Haddock reader improvements.John MacFarlane1-10/+6
- Correctly handle ghci sessions. - Fixed spacing issues. - Simplified code.
2013-04-09Removed unnecessary OPTIONS flag in Haddock/Parse.y.John MacFarlane1-1/+0
2013-04-09Fixed Haddock reader bugs with list item spaces and examples.John MacFarlane1-10/+8
Closes #824.
2013-04-04Haddock reader: leaving Space alone in @...@ seems more semantically correct.David Lazar1-1/+0
2013-04-04Haddock reader: derive Show for Token, making debugging easier.David Lazar1-1/+1
2013-03-31LaTeX reader: Support `\textasciitilde`, `\textasciicircum`.John MacFarlane1-0/+2
Closes #810.
2013-03-29Haddock reader: make clearer which production the comment refers to.David Lazar1-2/+3
2013-03-29Haddock reader: add the "haskell" attribute to code blocks so they areDavid Lazar1-4/+4
highlighted. We reasonably assume that code blocks in Haddock markup wont be used for anything but Haskell code.
2013-03-29Haddock reader: improved error reporting.David Lazar3-6/+9
2013-03-28Parsing: Better error reporting in readWith.John MacFarlane1-1/+4
- Specialize readWith to String input. - On error have it print the line in which the error occurred, with a caret pointing to the column. - This should help diagnose parsing problems in LaTeX especially.
2013-03-28Haddock writer: use 'text' builder instead of 'str'.John MacFarlane1-3/+10
This articulates strings into Str, Space, allowing them to be hard-wrapped intelligently by the writers. This patch also fixes a bug with trailing spaces and newlines. (See #806.)
2013-03-28Add reader for Haddock markup based on Haddock's own lexer/parser.David Lazar3-0/+387
2013-03-28Mediawiki reader: Fixed | links inside table cells.John MacFarlane1-10/+8
Improved attribute parsing.
2013-03-28Mediawiki reader: Fixed last commit.John MacFarlane1-1/+1
2013-03-28MediaWiki reader: Correctly handle indented preformatted textJohn MacFarlane1-5/+17
without preceding or following blank line.
2013-03-27mediawiki reader: allow space before table rows.John MacFarlane1-4/+5
2013-03-20OPML reader: Type attributes are not case sensitive.John MacFarlane1-2/+2
So, `type="link"` or `type="LINK"`.
2013-03-19Added Text.Pandoc.Readers.OPML, exporting readOPML.John MacFarlane1-0/+95
The _note attribute is supported. This is unofficial, but used e.g. in OmniOutliner and supported by multimarkdown. We treat the contents as markdown blocks under a section header. Added to documentation and tests.
2013-03-17Revert "LaTeX reader: citation handling changes."John MacFarlane1-8/+3
This reverts commit f7229b147314042f946dfded3b441ab0fae260a0.
2013-03-13Markdown reader: don't lose parentheses in URLs.John MacFarlane1-3/+7
Added tests. This fixes a regression from 1.10.x. Closes #786.
2013-03-12Markdown reader: Handle unmatched double quotes in dialogues.John MacFarlane1-3/+8
They do not generate a Quoted element; instead, the double quote is just turned into a Str with a curly left quote. This should satisfy the fiction writers. Closes #99 (again).
2013-03-11Fixed spacing bugs involving code block attributes.John MacFarlane1-1/+1
Closes #763.
2013-03-09LaTeX reader: citation handling changes.John MacFarlane1-3/+8
Previously, a LaTeX citation would always be parsed as a Citation element, with the raw LaTeX in the [Inline] part. Now, the LaTeX citation is parsed as a Citation element only if `--biblio` was specified (i.e. only if there is a nonempty set of references in readerReferences). Otherwise it is parsed as raw LaTeX. This will make it possible to simplify some things in the markdown writer. It also makes the LaTeX reader behave more like the Markdown reader.
2013-03-06Support :number-lines: in RST code output.John MacFarlane1-2/+1
2013-03-06LaTeX reader: Better support for Verbatim and minted environments.John MacFarlane1-3/+18
Closes #763.
2013-03-05LaTeX reader: Handle language attribute for lstlistings.John MacFarlane1-2/+5
Convert it to a highlighting-kate language name.
2013-03-04LaTeX reader: Read optional attributes in lstlisting environment.John MacFarlane1-1/+22
We convert these to pandoc standard names, e.g. "numberLines" for "numbers=left", "startFrom=100" from "firstnumber=100". Still need to add code to convert the language names.
2013-03-02Markdown reader: attribute parsing improvements.John MacFarlane1-14/+15
* Cleaned up parsing code. * '-' in an attribute context = '.unnumbered'. The point of this is to provide a way to specify unnumbered headers in non-English documents.
2013-03-02Check for tables before line blocks.John MacFarlane1-1/+1
Otherwise some pipe tables get treated as line blocks.
2013-03-02Markdown reader: Allow spaces around borders in pipe tables.John MacFarlane1-1/+3
Closes #772.
2013-03-01LaTeX reader: Add "fig:" as title for images with captions.John MacFarlane1-4/+8
This is needed for them to be rendered as figures. Closes #766.
2013-02-28Markdown: allow ---- in angle-bracket autolinks.John MacFarlane1-2/+7
The uri parser is designed for bare URIs. In angle-bracket contexts, we can be sure that we don't have trailing punctuation. So `<http://openclipart.org/detail/22566/lego-smiley----happy-by-pitr>` should work now. Closes #768.
2013-02-26LaTeX reader: Handle \caption for images in figures.John MacFarlane1-3/+6
Closes #766.
2013-02-21Make `implicit_header_references` work with explicit header ids.John MacFarlane1-16/+23
(Markdown reader.)
2013-02-20LaTeX reader: Don't emit empty paragraph.John MacFarlane1-2/+2
See #761.
2013-02-20LaTeX reader: Parse `\section*`, etc. as unnumbered sections.John MacFarlane1-11/+19
2013-02-16Textile reader: Handle attributes on headers.John MacFarlane1-15/+32
Includes `[lang]`, `(class #id)`, `{color:red}` styles.
2013-02-16HTML reader: Preserve all header attributes.John MacFarlane1-2/+4
2013-02-15Allow `&` in emails (for entities).John MacFarlane1-1/+1
Added tests for entities in titles and links. Closes #723.
2013-02-15Markdown reader: litChar now includes entities.John MacFarlane1-4/+4
We no longer need to use fromEntities on titles.
2013-02-12Markdown reader: Fix title block parsing.John MacFarlane1-1/+4
Now if mmd_title_blocks is specified, pandoc will parse a MMD title block if it sees one, even if pandoc_title_blocks is enabled.
2013-02-12Markdown reader: Make backslash escape work in attributes.John MacFarlane1-9/+9
2013-02-12Markdown reader: Fixed bug parsing key/value attributes.John MacFarlane1-1/+1
Parsing failed if you had an unquoted attribute immediately before the final '}'.
2013-02-11LaTeX reader: Parse `\hrule` as HorizontalRule.John MacFarlane1-0/+1
Closes #746.
2013-02-06Revert "Citation changes."John MacFarlane1-14/+8
This reverts commit d46f434d4b8906ae3b983e568549213de94fd1a2.
2013-02-06Implement `--default-image-extension` for LaTeX reader.John MacFarlane1-2/+10
2013-02-05Merge branch 'citations'John MacFarlane1-8/+14
2013-02-05Added `--default-image-extension` and `readerDefaultImageExtension`.John MacFarlane1-1/+6
Note: Currently this only affects the markdown reader.
2013-02-03Citation changes.John MacFarlane1-8/+14
* Citations will work in markdown even if `--biblio` isn't specified. Note: this may cause unexpected behavior for people who use strings of the form `@foo` that are not citations! * If `--biblio` isn't used, the markdown writer will write markdown citations rather than CSL-rendered citations. * This means, for example, that you can do `pandoc -f latex -t markdown` and convert biblatex or natbib citations into pandoc citations.
2013-02-02Removed unneeded blanklines in pipeTable parser.John MacFarlane1-1/+0