summaryrefslogtreecommitdiff
path: root/src
Commit message (Collapse)AuthorAge
* Added stateSubstitutions to ParserState, use for RST substitutions.John MacFarlane2012-09-27
|
* Removed Ext_monospace_autolinks.John MacFarlane2012-09-27
|
* Added Ext_autolink_urls.John MacFarlane2012-09-27
|
* Renamed Ext_autolink_code_spans to Ext_monospace_autolinks.John MacFarlane2012-09-27
|
* RST reader: Support :target: on .. image:: blocks.John MacFarlane2012-09-26
| | | | Still not supported on substitution definitions.
* Biblio: Remove workaround for toCapital.John MacFarlane2012-09-26
| | | | | Now citeproc-hs is fixed upstream, so this is no longer needed. Closes #531.
* Shared: Count \r as space in removeLeading/TrailingSpace.John MacFarlane2012-09-26
|
* UTF8: Better error message for invalid UTF8.John MacFarlane2012-09-26
| | | | | | | Read bytestring and use Text's decodeUtf8 instead of using System.IO's hGetContents. This way you get a message saying "invalid UTF-8 stream" instead of "invalid byte sequence." You are also told which byte caused the problem.
* Make --id-prefix affect footnote IDs in markdown writer.John MacFarlane2012-09-25
| | | | Closes #614.
* Removed need for utf8-string package.John MacFarlane2012-09-25
| | | | | | | | * Depend on text. * Expose Text.Pandoc.UTF8. * Text.Pandoc.UTF8 now exports toString, fromString, toStringLazy, fromStringLazy. * These are used instead of the old utf8-string functions.
* UTF8: use universalNewlineMode in reading.John MacFarlane2012-09-25
| | | | | This treats both '\r\n' and '\n' as '\n' on input, no matter what platform we're running on.
* Texinfo writer: Fixed internal cross-references.John MacFarlane2012-09-24
| | | | | | | | | | | Now we insert anchors after each header, and use @ref instead of @uref for links. Commas are now escaped as @comma{} only when needed; previously all commas were escaped. (This change is needed, in part, because @ref commands must be followed by a real comma or period.) Also insert a blank line in from of @verbatim environments.
* Revert "More intelligent handling of text encodings."John MacFarlane2012-09-23
| | | | This reverts commit 7272735b3d413a644fd9ab01eeae8ae9cd5a925b.
* More intelligent handling of text encodings.John MacFarlane2012-09-23
| | | | | | | | | | Previously, UTF-8 was enforced for both input and output. The new system: * For input, UTF-8 is tried first; if an error is raised, the locale encoding is tried. * For output, the locale encoding is always used.
* Removed unneeded CPP conditional.John MacFarlane2012-09-23
| | | | | Removed code that was conditional on base < 4.2, since now we require base >= 4.2.
* Added 'UTF8.' to decodeArg.John MacFarlane2012-09-23
|
* Revert "Use local encoding for input/output rather than forcing UTF8."John MacFarlane2012-09-23
| | | | This reverts commit c69837adb648a479167be5e2d37279a02be8060c.
* Use local encoding for input/output rather than forcing UTF8.John MacFarlane2012-09-23
| | | | | | | Note that system templates are stored as UTF8 and will still be read as such, even if the local encoding is different. Text downloaded from URLs will also be treated as UTF-8.
* UTF8: Export decodeArg.John MacFarlane2012-09-23
|
* Export encodePath/decodePath from UTF8.John MacFarlane2012-09-23
| | | | Removed duplicate code in src/pandoc.hs.
* Markdown reader: Fixed link parser to avoid exponential slowdowns.John MacFarlane2012-09-22
| | | | | | | | | | | | | | | | | | | | Previously the parser would hang on input like this: [[[[[[[[[[[[[[[[[[hi We fixed this by making the link parser parser characters between balanced brackets (skipping brackets in inline code spans), then parsing the result as an inline list. One change is that [hi *there]* bud](/url) is now no longer parsed as a link. But in this respect pandoc behaved differently from most other implementations anyway, so that seems okay. All current tests pass. Added test for this case. Closes #620.
* LaTeX reader: Added a 'try' in rawLaTeXBlock.John MacFarlane2012-09-22
| | | | | | | | This allows the markdown reader to treat '\begin' (not followed by an argument) as a raw string rather than erroring out when it doesn't find a '{'. Closes #622.
* LaTeX writer: Don't rely on the enumerate package.John MacFarlane2012-09-16
| | | | Instead, use standard LaTeX commands to change numbering style.
* LaTeX writer: Properly escape strings inside \url{}.John MacFarlane2012-09-16
| | | | Closes #576.
* RST writer: Fixed hyperlinked images.John MacFarlane2012-09-16
| | | | | | | * Use :target: field when you have a simple linked image. * Don't wrap the reference. * Cleaned up code. * Closes #611.
* RST reader: Small tweaks to raw field lists.John MacFarlane2012-09-16
| | | | | | * Don't allow line breaks in field names. * Strip off initial newline from 'raw' when field body begins on next line.
* Merge pull request #596 from dlax/rst-fieldlistsJohn MacFarlane2012-09-16
|\ | | | | improvements to rst reader for field lists
| * Allow any char but ':' in names of field lists in RST readerDenis Laxalde2012-08-29
| |
| * Fix RST reader for field lists items with body beginning after a new lineDenis Laxalde2012-08-29
| |
* | MediaWiki reader: Allow table in table cell.John MacFarlane2012-09-15
| |
* | LaTeX writer: Don't escape _ in hyperref identifiers.John MacFarlane2012-09-15
| |
* | LaTeX writer: don't escape _ in url.John MacFarlane2012-09-15
| |
* | LaTeX writer: Don't use \endhead with longtable.John MacFarlane2012-09-15
| | | | | | | | | | It causes the heading to be a different size form the body, sometimes.
* | Markdown writer: Made sensitive to Ext_hard_line_breaks.John MacFarlane2012-09-15
| |
* | LaTeX writer: Use longtable instead of ctable.John MacFarlane2012-09-15
| |
* | MediaWiki reader: Added smart doublequotes with -S option.John MacFarlane2012-09-15
| | | | | | | | | | Also disallow ' in the "trail" of an internal link; allowing it causes bugs with `'''[[Link]]'''`.
* | MediaWiki parser: Improved endline to stop bad breaks.John MacFarlane2012-09-15
| |
* | MediaWiki reader: Allow def list item with just a term.John MacFarlane2012-09-15
| |
* | MediaWiki reader: Properly handle templates in list items.John MacFarlane2012-09-15
| |
* | HTML reader: Modified htmlTag for fewer false positives.John MacFarlane2012-09-15
| | | | | | | | | | | | A tag must start with `<` followed by `!`,`?`, `/`, or a letter. This makes it more useful in the wikimedia and markdown parsers.
* | MediaWiki reader: Handle ref tags as footnotes.John MacFarlane2012-09-15
| |
* | MediaWiki reader: Better parsing of templates.John MacFarlane2012-09-15
| |
* | MediaWiki reader: Treat "references" tag as block.John MacFarlane2012-09-15
| |
* | MediaWiki reader: Interpret width attribute on table columns.John MacFarlane2012-09-15
| |
* | MediaWiki reader: Got alignments working.John MacFarlane2012-09-15
| | | | | | | | | | They only work on headers, because pandoc forces same alignment for all cells in a column.
* | MediaWiki reader: Misc fixes, put category links at end.John MacFarlane2012-09-15
| |
* | MediaWiki reader: Skip inline templates, handle <source>.John MacFarlane2012-09-15
| |
* | MediaWiki reader: Parse styles on table cells.John MacFarlane2012-09-15
| |
* | MediaWiki reader: Parse styles after '{|' table start.John MacFarlane2012-09-15
| |
* | MediaWiki reader: || between table cells.John MacFarlane2012-09-14
| |