aboutsummaryrefslogtreecommitdiff
path: root/src/Text/Pandoc/Readers
AgeCommit message (Collapse)AuthorFilesLines
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
2013-01-30HTML reader: Handle colgroup tag.John MacFarlane1-1/+2
2013-01-28Fixed latex macro parsing.John MacFarlane2-2/+2
Now latex macro definitions are preserved when output is latex, and applied when it is another format, as originally intended. Partially addresses #730. \providecommand is still not supported. For this we need changes to texmath.
2013-01-28Merge pull request #733 from jrunningen/masterJohn MacFarlane1-1/+1
Mediawiki reader: Don't require blanklines after tables.
2013-01-27Markdown/RST reader: Skip blank lines.John MacFarlane2-1/+3
This fixes a subtle regression involving grid tables with empty cells. Closes #732. Also added test for grid table with empty cells.
2013-01-27Mediawiki reader: Don't require blanklines after tables.Jeff Runningen1-1/+1
2013-01-25Markdown reader: Simplified and sped up str parser.John MacFarlane1-15/+9
We no longer needed the smart quote complexity, because of improvements to singleQuoteStart and singleQuoteEnd. And we were able to move the check for intraword underscore to the emphasis parser.
2013-01-25RST reader: Allow anonymous form of explicit links.John MacFarlane1-0/+1
`hello <url>`__ Closes #724.
2013-01-25Changed copyright date range on Markdown reader.John MacFarlane1-1/+1
2013-01-25Minor code cleanup.John MacFarlane1-7/+6
2013-01-25Markdown reader: Moved guardEnabled to definitionList.John MacFarlane1-1/+1
From definitionListItem. Slight performance improvement.
2013-01-25Markdown reader: Performance improvement in str parser.John MacFarlane1-3/+6
Moved a guardEnabled out of an inner loop.
2013-01-25Use anyLine everywhere instead of 'manyTill anyChar newline'.John MacFarlane3-11/+11
2013-01-25Markdown reader: More efficient version of scanForPipe.John MacFarlane1-1/+5
2013-01-23Fixed regressions in fenced code blocks.John MacFarlane1-16/+6
* Tilde code fences can again take bare language. So ~~~ haskell is okay, not just ~~~ {.haskell} * Backtick code blocks can take the bracketed attributes. * Backtick code blocks don't require a language. * Consolidated code for the two kinds of fenced code blocks. Closes #722.
2013-01-21Markdown reader: Try lhsCodeBlock before rawTeXBlock.John MacFarlane1-1/+1
Otherwise \begin{code}...\end{code} isn't handled properly in markdown+lhs. Thanks to Daniel Miot for noticing the bug and suggesting the fix.
2013-01-21Markdown reader: Fixed bug with headerless grid tables.John MacFarlane1-2/+2
The 1.10 code assumed that each table header cell contains exactly one block. That failed for headerless tables (0) and also for tables with multiple blocks in a header cell. The code is fixed and tests provided. Thanks to Andrew Lee for pointing out the bug.
2013-01-20Fixed bug with escaped % in LaTeX reader.John MacFarlane1-0/+2
Also added tests. Closes #710.
2013-01-17Revert "Markdown reader: Be less restrictive about class attributes."John MacFarlane1-1/+1
This reverts commit b158b3fb2182b5c8a6f03759277f4f73cdc24797.
2013-01-16Markdown reader: Be less restrictive about class attributes.John MacFarlane1-1/+1
This allows attributes like `C++`. Any nonspace and non-}.
2013-01-16Implemented Ext_link_attributes in markdown reader.John MacFarlane1-31/+26
Also simplified source URL and link title parsers.