summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAge
...
* Issue warning for duplicate header identifiers.John MacFarlane2017-03-12
| | | | | | | | | | | | | | | As noted in the previous commit, an autogenerated identifier may still coincide with an explicit identifier that is given for a header later in the document, or with an identifier on a div, span, link, or image. This commit adds a warning in this case, so users can supply an explicit identifier. * Added `DuplicateIdentifier` to LogMessage. * Modified HTML, Org, MediaWiki readers so their custom state type is an instance of HasLogMessages. This is necessary for `registerHeader` to issue warnings. See #1745.
* Improved behavior of `auto_identifiers` when there are explicit ids.John MacFarlane2017-03-12
| | | | | | | | | | | | | | | | | | | | | | | | | | Previously only autogenerated ids were added to the list of header identifiers in state, so explicit ids weren't taken into account when generating unique identifiers. Duplicated identifiers could result. This simple fix ensures that explicitly given identifiers are also taken into account. Fixes #1745. Note some limitations, however. An autogenerated identifier may still coincide with an explicit identifier that is given for a header later in the document, or with an identifier on a div, span, link, or image. Fixing this would be much more difficult, because we need to run `registerHeader` before we have the complete parse tree (so we can't get a complete list of identifiers from the document by walking the tree). However, it might be worth issuing warnings for duplicate header identifiers; I think we can do that. It is not common for headers to have the same text, and the issue can always be worked around by adding explicit identifiers, if the user is aware of it.
* Revert "Shared: export extractIds."John MacFarlane2017-03-12
| | | | This reverts commit 0ef1e51211cd35b1ddb54a5fe8bee4247f1e1801.
* Shared: export extractIds.John MacFarlane2017-03-12
| | | | This will be used to help with #1745.
* MANUAL: Small clarification in YAML metadata section.John MacFarlane2017-03-12
|
* Changed test case labeled 3384.md to 3348.md.John MacFarlane2017-03-11
| | | | | The last commit referred to #3384, but should have closed #3348.
* Markdown writer: fixed bugs in simple/multiline list output.John MacFarlane2017-03-11
| | | | | | | | * Previously we got overlong lists with `--wrap=none`. This is fixed. * Previously a multiline list could become a simple list (and would always become one with `--wrap=none`). Closes #3384.
* Markdown reader: optimized nonindentSpaces.John MacFarlane2017-03-11
| | | | Makes the benchmark go from 40 to 36 ms.
* ConTeXt writer: converted to use PandocMonad.John MacFarlane2017-03-10
|
* Removed normalizeSpaces from Text.Pandoc.Shared.John MacFarlane2017-03-10
| | | | | | | Rewrote functions in RST reader and writer to avoid the need for it. Closes #1530.
* Docx reader: more efficient trimSps.John MacFarlane2017-03-10
| | | | | | | | Replacing trimLineBreaks. This does the work of normalizeSpaces as well, so we avoid the need for that function here. See #1530.
* Shared.normalizeSpaces: strip off leading/trailing line breaks...John MacFarlane2017-03-10
| | | | ...not just spaces.
* Add Muse writer (#3489)Alexander Krotov2017-03-10
| | | | | | | | * Add Muse writer * Advertise new Muse writer * Muse writer: add regressions tests
* stack.yaml: Use texmath 0.9.3.John MacFarlane2017-03-10
|
* Use pMacroDefinition in macro (for more direct parsing).John MacFarlane2017-03-10
| | | | | | | This is newly exported in texmath 0.9.3. Note that this means that `macro` will now parse one macro at a time, rather than parsing a whole group together.
* Expand \newenvironment macros.John MacFarlane2017-03-10
| | | | | | Closes #987. Depends on still unreleased texmath 0.9.3.
* LaTeX reader: Treat `{{xxx}}` the same as `{xxx}`.John MacFarlane2017-03-09
| | | | Closes #2115.
* Changed display format for messages.John MacFarlane2017-03-09
|
* HTML writer: info message if 'lang' is unspecified.John MacFarlane2017-03-09
| | | | Closes #3486.
* Logging: Added NoLangSpecified, use toConstr to avoid boilerplate.John MacFarlane2017-03-09
|
* HTML writer: fallback to basename rather than Untitled.John MacFarlane2017-03-09
|
* Remove space at beginning/end of RST code span.John MacFarlane2017-03-08
| | | | | | | Otherwise we get invalid RST. There seems to be no way to escape the space. Closes #3496.
* Org reader: disallow tables on list marker linesAlbert Krewinkel2017-03-08
| | | | Fixes: #3499
* Travis: Remove GHC HEAD build.John MacFarlane2017-03-08
| | | | This pretty much always fails due to dependencies.
* Travis: comment out OSX build.John MacFarlane2017-03-08
| | | | | This always takes forever to complete. Since I develop on OSX anyway, it's not so urgent.
* 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.
* Added test case for #3497.John MacFarlane2017-03-08
|
* 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.
* stack.yamls: use lts-8.4 and texmath-0.9.1.1.John MacFarlane2017-03-07
|
* Re-enable support for custom lua writers.John MacFarlane2017-03-07
| | | | Closes #3495.
* Speed up Native writer quickcheck tests.John MacFarlane2017-03-07
|
* Small change to unbalanced bracket test to speed up test suite.John MacFarlane2017-03-07
|
* 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.
* Clarify that meta-json contains transformed values (#3491)Jakob Voß2017-03-07
| | | Make clear that template variable `meta-json` does not contain plain text values or JSON output format but field values transformed to the selected output format.
* 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 a markdown abbrevation test case.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.
* Regularized CSS in html/epub/html slide templates.John MacFarlane2017-03-04
| | | | | | | | | | All templates now include `code{white-space: pre-wrap}` and CSS for `q` if `--html-q-tags` is used. Previously some templates had `pre` and others `pre-wrap`; the `q` styles were only sometimes included. See #3485.
* 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.