aboutsummaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
2019-06-05Add jira writer (#5548)Albert Krewinkel7-0/+1015
This adds support for Atlassian's jira markup. Closes #2497
2019-06-05Fix typo in lua documentation.John MacFarlane1-1/+1
Closes #5552.
2019-06-04Include trailing {}s in raw latex commands.John MacFarlane2-2/+13
Change is in rawLaTeXInline in LaTeX reader, but it affects the markdown reader and other readers that allow raw LaTeX. Previously, trailing `{}` would be included for unknown commands, but not for known commands. However, they are sometimes used to avoid a trailing space after the command. The chances that a `{}` after a LaTeX command is not part of the command are very small. Closes #5439.
2019-06-04Docx reader: Add support for w:rtl (ltr annotation).John MacFarlane2-4/+19
Closes #5545.
2019-06-04Fix document section assignments in EPUB writer.John MacFarlane2-9/+19
For example, introduction should go in bodymatter, not frontmatter, and epigraph, conclusion, and afterward should go in bodymatter, not backmatter. For the full list of assignments, see the manual. Closes #5546.
2019-06-04Update pandoc-citeproc and skylighting versions.John MacFarlane3-4/+4
2019-06-04Markdown reader: don't create implicit reference for empty header.John MacFarlane2-4/+16
Closes #5549.
2019-06-03Avoid unwanted interpretation of def list term as other kind of block,John MacFarlane2-4/+12
e.g. ordered list item, in Markdown writer. Closes #554.
2019-06-01Textile writer: fix closing tag for math outputAlbert Krewinkel2-8/+8
Opening and closing tag for math output match now.
2019-05-30Add unicode code point in "Missing character" warning.John MacFarlane1-1/+8
If the character isn't in the console font, the message is pretty useless, so we show the code point for anything non-ASCII. Closes #5538.
2019-05-30doc/lua-filters.md: fix typos in pandoc.mediabag docsAlbert Krewinkel1-2/+2
2019-05-30Merge pull request #5312 from tarleb/pandoc-mediabag-extensionJohn MacFarlane7-6/+236
Pandoc mediabag extension
2019-05-30Lua modules: test pandoc.mediabagAlbert Krewinkel2-3/+80
2019-05-29pandoc.mediabag module: add function `delete`Albert Krewinkel3-1/+28
Function `pandoc.mediabag.delete` allows to remove a single item of the given name from the media bag.
2019-05-29pandoc.mediabag module: add function `empty`Albert Krewinkel2-1/+12
Function `pandoc.mediabag.empty` was added. It allows to clean-out the media bag, removing all entries.
2019-05-29pandoc.mediabag module: add items function iterating over mediabagAlbert Krewinkel5-1/+116
A new function `pandoc.mediabag.items` was added to Lua module pandoc.mediabag. This allows users to lazily iterate over all media bag items, loading items into Lua one-by-one. Example: for filename, mime_type, content in pandoc.mediabag.items() do -- use media bag item. end This is a convenient alternative to using `mediabag.list` in combination with `mediabag.lookup`.
2019-05-29doc/lua-filters.md: improve docs for Version type/constructorAlbert Krewinkel1-2/+38
2019-05-29Lua Version type: shorten "version too old" messageAlbert Krewinkel2-2/+2
2019-05-29Merge pull request #5526 from tarleb/richer-version-typeJohn MacFarlane12-23/+353
Lua: add Version type to simplify comparisons
2019-05-29Merge pull request #5497 from mb21/html-writer-video-audioJohn MacFarlane8-39/+61
Output HTML5 video and audio elements
2019-05-29HTML reader: misc. epub related fixes.John MacFarlane2-920/+928
- With epub extensions, check for epub:type in addition to type. - Fix problem with noteref parsing which caused block-level content to be eaten with the noteref. - Rename pAnyTag to pAny. - Refactor note resolution.
2019-05-29Lua: add Version type to simplify comparisonsAlbert Krewinkel12-23/+353
Version specifiers like `PANDOC_VERSION` and `PANDOC_API_VERSION` are turned into `Version` objects. The objects simplify version-appropriate comparisons while maintaining backward-compatibility. A function `pandoc.types.Version` is added as part of the newly introduced module `pandoc.types`, allowing users to create version objects in scripts.
2019-05-29HTML writer: output video and audio elementsmb218-37/+52
depending on file extension of the image path
2019-05-29Text.Pandoc.MIME: add mediaCategory [API change]mb211-2/+9
2019-05-28Remove command test for #5517.John MacFarlane1-32/+0
We need a better test that works cross-platform. Until then, removing this. Closes #5528.
2019-05-28HTML writer: emit empty alt tag in figures (#5518)Mauro Bieg6-8/+8
The same text is already in the <figcaption> and screen-readers would read it twice, see #4737
2019-05-28MANUAL: add note about title-meta, author-meta, date-meta.John MacFarlane1-0/+6
Closes #5486.
2019-05-28Add test for relative file: URI to #5517.John MacFarlane1-0/+6
2019-05-28Fix handling of `file:` URL scheme in `downloadOrRead` (#5522)Mauro Bieg2-2/+28
Move up the pattern match to be reachable, closes #5517. Previously `file:/` URLs were handled wrongly and pandoc attempted to make HTTP requests, which failed.
2019-05-27Specify skylighting 0.8 as extra-deps.John MacFarlane1-0/+2
2019-05-27EPUB writer: don't include 'landmarks' if there aren't any.John MacFarlane1-9/+10
Previously we could get an empty ol element, which caused validation errors with epubcheck.
2019-05-27Use skylighting 0.8.John MacFarlane3-29/+33
2019-05-27consolidate simple-table detection (#5524)Mauro Bieg6-42/+24
add `onlySimpleTableCells` to `Text.Pandoc.Shared` [API change] This fixes an inconsistency in the HTML reader, which did not treat tables with `<p>` inside cells as simple.
2019-05-25Muse reader: allow images inside link descriptionsAlexander Krotov2-5/+7
2019-05-25HTML reader: trim definition list termsAlexander Krotov2-1/+18
2019-05-25Muse writer: do not escape empty line after <br>Alexander Krotov2-4/+6
2019-05-23Disable missing-home-modules warning in stack.yaml.John MacFarlane1-1/+1
Otherwise 'stack ghci' fails.
2019-05-23Revert "appveyor - temporarily stop building pandoc-citeproc."John MacFarlane1-4/+4
This reverts commit b71d67ea03ba2daca7bac8d86b9dd32f71883486.
2019-05-22appveyor - temporarily stop building pandoc-citeproc.John MacFarlane1-4/+4
Once we get this cached we can add it back?
2019-05-22Markdown writer: Ensure the code fence is long enough.John MacFarlane2-11/+24
Previously too few backticks were used when the code block contained an indented line of backticks. (Ditto tildes.) Cloess #5519.
2019-05-21Makefile: remove --resolver= from targets.John MacFarlane1-5/+5
This causes unnecessary recompilation.
2019-05-21Markdown writer: fix small error in ed73bd28Jesse Rosenthal1-4/+3
A `do` notation was left in a non-monadic function.
2019-05-21Markdown writer: Handle labels with integer namesJesse Rosenthal2-3/+38
Previously if labels had integer names, it could produce a conflict with auto-labeled reference links. Now we test for a conflict and find the next available integer. Note that this involves adding a new state variable `stPrevRefs` to keep track of refs used in other document parts when using `--reference-location=block|section` Closes #5495
2019-05-20Improve output of Lua tests (#5499)Albert Krewinkel8-165/+202
This makes use of tasty-lua, a package to write tests in Lua and integrate the results into Tasty output. Test output becomes more informative: individual tests and test groups become visible in test output. Failures are reported with helpful error messages.
2019-05-18Add tex_math_dollars to multimarkdownExtensions.John MacFarlane1-0/+1
This form is now supported in multimarkdown, in addition to `tex_math_double_backslash`. See #5512.
2019-05-17Use new code signing cert for Windows.John MacFarlane1-1/+1
2019-05-17Bump to 2.7.3John MacFarlane1-1/+1
2019-05-16JATS writer: properly handle footnotes.John MacFarlane3-31/+56
"Best Practice: When footnotes are grouped at the end of an article, wrap them in a `<fn-group>` and use an `<xref>` element in the text, as usual, to tie each footnote in the list to a particular location in the text." Closes #5511.
2019-05-15FB2 writer: do not wrap note references into <sup> and bracketsAlexander Krotov3-18/+6
Existing FB2 readers, such as FBReader, already display links with type="note" as a superscript.
2019-05-15hlint FB2 writerAlexander Krotov1-27/+22