summaryrefslogtreecommitdiff
path: root/src/Text/Pandoc
Commit message (Collapse)AuthorAge
...
* Org reader: disallow tables on list marker linesAlbert Krewinkel2017-03-08
| | | | Fixes: #3499
* Markdown writer: Avoid spurious blanklines at end of document...John MacFarlane2017-03-08
| | | | after tables and list, for example.
* Markdown writer: ensure space before list at top level.John MacFarlane2017-03-08
| | | | Closes #3487.
* Org reader: don't allow tables inside list items.John MacFarlane2017-03-08
| | | | Closes #3499.
* Markdown writer: escape unordered list markers at beginning of paragraphJohn MacFarlane2017-03-08
| | | | | | | | to avoid false interpretation as a list. Also handle `|`, and refactor code for escaping `%`. Closes #3497.
* Re-enable support for custom lua writers.John MacFarlane2017-03-07
| | | | Closes #3495.
* Markdown reader: Treat certain environments as inlineJohn MacFarlane2017-03-07
| | | | | | | | | | | | when they occur without space surrounding them. E.g. equation, math. This avoids incorrect vertical space around equations. Closes #3309. Closes #2171. See also rstudio/bookdown#358.
* Markdown writer: better handling of tables with empty columns.John MacFarlane2017-03-06
| | | | | | | | | | E.g. an HTML table with two cells in the first row and one in the second (but no row/colspan). We now calculate the number of columns based on the longest row (or the length of aligns or widths). Closes #3337.
* LaTeX reader: allow newpage, clearpage, pagebreak in inline contextsJohn MacFarlane2017-03-06
| | | | | | as well as block contexts. Closes #3494.
* Markdown writer: Fixed false ordered lists in YAML metadata.John MacFarlane2017-03-06
| | | | | | | | | | | | Now we properly escape things that would otherwise start ordered lists, such as --- title: 1. inline ... Closes #3492. Closes #1685.
* LaTeX reader: support all \textXX commands.John MacFarlane2017-03-05
| | | | | | | | where XX = rm, tt, up, md, sf, bf. Spans with a class are used when there is nothing better. Closes #3488.
* Markdown reader: fixed internal header links.John MacFarlane2017-03-05
| | | | | | | Closes #2397. This patch also adds `shortcut_reference_links` to the list of mmd extensions.
* Markdown writer: escape initial % in a paragraph...John MacFarlane2017-03-05
| | | | | | | | ...if the `pandoc_title_blocks` extension is enabled. Otherwise in a document starting with a literal percent sign the first line is wrongly interpreted as a title. Closes #3454.
* LaTeX reader: small improvements in parsing arguments.John MacFarlane2017-03-05
|
* LaTeX reader: Handle spaces before \cite arguments.John MacFarlane2017-03-05
|
* Added readerAbbreviations to ParserState.John MacFarlane2017-03-05
| | | | | | | | Markdown reader now consults this to determine what is an abbreviation. Eventually it will be possible to specify a custom list (see #256).
* Markdown reader: Fixed regression on left-biased union for metadata.John MacFarlane2017-03-05
| | | | | | | | When multiple YAML metadata blocks are used, and two define the same field, the value defined first takes precedence, according to the manual. This was changed briefly in ba3ee62323644134f2a5dd3277e3349d3681111a. This commit reverts to the original behavior and adds a test case.
* Parse YAML metadata in a context that sees footnotes...John MacFarlane2017-03-05
| | | | | | defined in the body of the document. Closes #1279.
* Fixed some loose ends in #1592.John MacFarlane2017-03-04
| | | | | | | | | | Added test cases. Fixed HTML reader to parse a span with class "smallcaps" as SmallCaps. Fixed Markdown writer to render SmallCaps as a native span when native spans are enabled.
* HTML writer: only issue warning for missing title if --standalone.John MacFarlane2017-03-04
|
* HTML writer: Render SmallCaps as span with smallcaps class.John MacFarlane2017-03-04
| | | | | | | | | Rather than using a style attribute directly. This gives the user more flexibility in styling small caps in CSS. See #1592.
* Use smallcaps class for SmallCaps in CommonMark writer.John MacFarlane2017-03-04
| | | | See #1592.
* Markdown writer: Use span with class 'smallcaps' for SmallCaps.John MacFarlane2017-03-04
| | | | | | Instead of a style attribute as before. See #1592.
* Markdown reader: treat span with class `smallcaps` as SmallCaps.John MacFarlane2017-03-04
| | | | | | | | This allows users to specify small caps in Markdown this way: [my text]{.smallcaps} See #1592.
* Stylish-haskell automatic formatting changes.John MacFarlane2017-03-04
|
* hlint refactoring.John MacFarlane2017-03-04
|
* Add hanging indent to log messages.John MacFarlane2017-03-04
| | | | This makes them easier to read.
* HTML writer: issue warning if no title specified and template used.John MacFarlane2017-03-04
| | | | See #3473.
* Logging: Added NoTitleElement constructor for LogMessage.John MacFarlane2017-03-04
|
* OpenDocument writer: Clarified some code.John MacFarlane2017-03-03
|
* OpenDocument writer: fixed dropped elements in some ordered lists.John MacFarlane2017-03-03
| | | | Closes #2434.
* RST reader: support RST-style citations.John MacFarlane2017-03-03
| | | | | | | | | | | The citations appear at the end of the document as a definition list in a special div with id `citations`. Citations link to the definitions. Added stateCitations to ParserState. Closes #853.
* Docx writer: Don't include bookmarks on headers unless non-null id.John MacFarlane2017-03-03
| | | | Closes #3476.
* Pretty: don't error for blocks of size < 1.John MacFarlane2017-03-03
| | | | | | | | | | Instead, resize to 1. Note, this (together with earlier changes to the Markdown writer) seems to fix #1785. The table renders as garbage, but pandoc now completes the conversion quickly and doesn't get tied up.
* ConTeXt writer: remove unnecessary $ (#3482)Alexander Krotov2017-03-03
|
* RST reader: Handle multiline cells in simple tables.John MacFarlane2017-03-02
| | | | Closes #1166.
* LaTeX writer: add `\leavevmode` before hypertarget at start of paragraph.John MacFarlane2017-03-02
| | | | | | | Closes #2704 (formatting problems in beamer citations). See http://tex.stackexchange.com/questions/22852/function-and-usage-of-leavevmode
* LaTeX writer: use % after hypertarget before code blockJohn MacFarlane2017-03-02
|
* LaTeX writer: minor tweak to hypertarget (semantically irrelevant).John MacFarlane2017-03-02
|
* Removed unnecessary import.John MacFarlane2017-03-02
|
* Markdown reader: when splitting pipe table cells, skip tex math.John MacFarlane2017-03-02
| | | | | | | | You might have a `|` character inside math. (Or for that matter something that the parser might mistake for raw HTML.) See #3481.
* LaTeX writer: always add hypertarget when there's a non-empty identifier.John MacFarlane2017-03-01
| | | | | Previously the hypertargets were only added when there was actually a link to that identifier. Closes #2719.
* LaTeX reader: don't drop contents of \hypertarget.John MacFarlane2017-03-01
|
* Writers: Use gets to access MonadState where possible (#3480)Alexander Krotov2017-03-01
|
* Markdown writer: Fixed grid tables embedded in grid tables.John MacFarlane2017-03-01
| | | | Closes #2834.
* Markdown writer: Refactored gridTable to use widths in chars.John MacFarlane2017-03-01
|
* ODT writer: calculate aspect ratio for percentage-sized images (#3478)Mauro Bieg2017-03-01
| | | closes #3239
* RST reader: implemented implicit internal header links.John MacFarlane2017-02-28
| | | | Cloess #3475.
* Removed `--epub-stylesheet`; use `--css` instead.John MacFarlane2017-02-27
| | | | | | | | | | | | * Removed writerEpubStylesheet in WriterOptions. * Removed `--epub-stylesheet` option. * Allow `--css` to be used with epub. * Allow multiple stylesheets to be used. * Stylesheets will be taken both from `--css` and from the `stylesheet` metadata field (which can contain either a file path or a list of them). Closes #3472, #847.
* LaTeX reader: Handle komascript `\dedication`.John MacFarlane2017-02-27
| | | | | | | | It now adds a `dedication` field to metadata. It is up to the user to supply a template that uses this variable. Closes #1845.