summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAge
...
* Added test for #256.John MacFarlane2017-03-16
|
* MANUAL: document `--abbreviations`.John MacFarlane2017-03-16
| | | | Closes #256.
* Add default abbreviations file (data/abbreviations).John MacFarlane2017-03-16
| | | | | | | | | | This contains a list of strings that will be recognized by pandoc's Markdown parser as abbreviations. (A nonbreaking space will be inserted after the period, preventing a sentence space in formats like LaTeX.) Users can override the default by putting a file abbreviations in their user data directory (`~/.pandoc` on *nix).
* Added --abbreviations=FILE option for custom abbreviations file.John MacFarlane2017-03-16
|
* LaTeX/Beamer writer: allow hyperlinks to frames.John MacFarlane2017-03-16
| | | | | | | | | | | Previously you could link to a header above or below slide level but not TO slide level. This commit changes that. Hypertargets are inserted inside frame titles; technically the reference is to just after the title, but in normal use (where slides are viewed full screen in a slide show), this does not matter. Closes #3220.
* Makefile: allow make test to take TESTARGS.John MacFarlane2017-03-15
|
* OpenDocument writer: use more widely available bullet characters.John MacFarlane2017-03-15
| | | | | | | The old characters weren't available in some font sets. These seem to work well on Windows and Linux versions of LibreOffice. Closes #1400.
* Removed another unused cabal dependency.John MacFarlane2017-03-15
|
* Removed some unnecessary build-depends.John MacFarlane2017-03-15
|
* Fixed weigh-pandoc so it compiles again.John MacFarlane2017-03-15
|
* Use tasty-golden for golden tests in Old.John MacFarlane2017-03-15
|
* Command tests: just findPandoc once.John MacFarlane2017-03-14
|
* Removed unneeded import.John MacFarlane2017-03-14
|
* Got rid of distracting warning in test output.John MacFarlane2017-03-14
|
* Small test plumbing improvement.John MacFarlane2017-03-14
|
* Use tasty for tests rather than test-framework.John MacFarlane2017-03-14
|
* Removed unused symbol.John MacFarlane2017-03-13
|
* Better handling of \part in LaTeX.John MacFarlane2017-03-13
| | | | | | | | | | | | Closes #1905. Removed stateChapters from ParserState. Now we parse chapters as level 0 headers, and parts as level -1 headers. After parsing, we check for the lowest header level, and if it's less than 1 we bump everything up so that 1 is the lowest header level. So `\part` will always produce a header; no command-line options are needed.
* Docx writer: Support 9 levels of headers.John MacFarlane2017-03-13
| | | | Closes #1642.
* RST writer: convert to PandocMonad, report on unrendered raw items.John MacFarlane2017-03-13
|
* ISSUE_TEMPLATE: add URL for pandoc-discuss.John MacFarlane2017-03-13
|
* Added github ISSUE_TEMPLATE.John MacFarlane2017-03-13
|
* Highlighting: highlighting now returns an Either rather than Maybe.John MacFarlane2017-03-13
| | | | | | | This allows us to display error information returned by the skylighting library. Display a warning if the highlighting library throws an error.
* Put TEI writer inside PandocMonad. Added warnings for omitted raw elements.John MacFarlane2017-03-13
| | | | | Also added identifiers on `<div>` elements. These were commented out before, not sure why?
* Org reader: interpret more meta value as inlinesAlbert Krewinkel2017-03-12
| | | | | | | | | | The values of the following meta variables are now interpreted using org-markup instead of treating them as pure strings: - *keywords*: comma-separated list of inlines - *subtitle*: inline values - *nocite*: inline values; using it multiple times accumulates the values.
* Converted DokuWiki writer to use PandocMonad.John MacFarlane2017-03-12
|
* MediaWiki writer: use PandocMonad.John MacFarlane2017-03-12
|
* 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