summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAge
* Removed unnecessary import.John MacFarlane2017-12-03
|
* Test for #4113.John MacFarlane2017-12-03
| | | | Closes #4113.
* commonmark/gfm writer: use raw html for native divs/spans.John MacFarlane2017-12-03
| | | | | This allows a pandoc markdown native div or span to be rendered in gfm using raw html tags.
* HTML writer: export tagWithAttributes.John MacFarlane2017-12-03
| | | | | This is a helper allowing other writers to create single HTML tags.
* commonmark/gfm writer: implement `raw_html` and `raw_tex` extensions.John MacFarlane2017-12-03
| | | | | Note that `raw_html` is enabled by default for `gfm`, while `raw_tex` is disabled by default.
* Bump bounds for binary, http-types, tasty-hunitJohn MacFarlane2017-12-02
|
* Update man page and MANUAL date.John MacFarlane2017-12-02
|
* Update changelog.John MacFarlane2017-12-02
|
* Docx writer: allow empty paragraphs.John MacFarlane2017-12-02
| | | | | | | | See #2252. This also changes fixDisplayMath from Text.Pandoc.Writers.Shared so that it no longer produces empty Para as an artifact. (That was the original reason the writer omitted them.)
* Docx reader: don't strip out empty paragraphs.John MacFarlane2017-12-02
| | | | | | | | | | We now have the `--strip-empty-paragraphs` option for that, if you want it. Closes #2252. Updated docx reader tests. We use stripEmptyParagraphs to avoid changing too many tests. We should add new tests for empty paragraphs.
* Shared.blocksToInlines: rewrote using builder.John MacFarlane2017-12-02
| | | | | This gives us automatic normalization, so we don't get for example two consecutive Spaces.
* Add --strip-empty-paragraphs option.John MacFarlane2017-12-02
| | | | This works for any input format.
* Bump to 2.0.4, update changelog.John MacFarlane2017-12-02
|
* Update tested-with.John MacFarlane2017-12-02
|
* LaTeX writer: escape `_` in code with --listings.John MacFarlane2017-12-02
|
* revealjs template: added a necessary escape.John MacFarlane2017-12-01
|
* reveal.js template: include tex2jax configuration.John MacFarlane2017-12-01
| | | | | | This ensures that we don't use $..$ delimiters, which gives bad results when $ is used as a currency sign. This depends on the current dev version of reveal.js.
* LaTeX writer: allow specifying just width or height for image size.John MacFarlane2017-12-01
| | | | | | | | | Previously both needed to be specified (unless the image was being resized to be smaller than its original size). If height but not width is specified, we now set width to textwidth (and similarly if width but not height is specified). Since we have keepaspectratio, this yields the desired result.
* LaTeX writer: escape ~ in code with --listings.John MacFarlane2017-12-01
| | | | Closes #4111.
* Revert "LaTeX writer: Add keepaspectratio to includegraphics..."John MacFarlane2017-12-01
| | | | This reverts commit 171187a4527497701b3c77bd56cea2d770d4e3b0.
* pandoc.lua: set metatable on List MetaValuesAlbert Krewinkel2017-12-01
| | | | | | | The `List` metatable is assigned to the tables which get passed to the constructors `MetaBlocks`, `MetaInline`, and `MetaList`. This enables the use of the resulting objects as lists. This is part of the changes discussed in #4081.
* Lua/StackInstances: push Pandoc and Meta via constructorAlbert Krewinkel2017-12-01
| | | | | | | Pandoc and Meta elements are now pushed by calling the respective constructor functions of the pandoc Lua module. This makes serialization consistent with the way blocks and inlines are pushed to lua and allows to use List methods with the `blocks` value.
* lua-filters.md: add documentation for pandoc.ListAlbert Krewinkel2017-12-01
|
* List.lua: add missing fixes as discussed in #4099Albert Krewinkel2017-12-01
| | | | The changes were missing due to an error while using git.
* LaTeX writer: Add keepaspectratio to includegraphics...John MacFarlane2017-11-30
| | | | ...if only one of height/width is given.
* Use latest tagsoup.John MacFarlane2017-11-30
| | | | | | This fixes a bug in parsing tags with `&` following. Closes #4094. Closes #4088.
* Support beamer `\alert` in LaTeX reader. Closes #4091.John MacFarlane2017-11-29
|
* List.lua: add _VERSION to module, drop unused varAlbert Krewinkel2017-11-29
|
* Let papersizes a0, a1, a2, ... be case-insensitive in LaTeX and ConTeXt.John MacFarlane2017-11-29
|
* Muse reader: correctly remove indentation from notesAlexander Krotov2017-11-29
| | | | Exactly one space is required and considered to be part of the marker.
* Add basic lua List module (#4099)Albert Krewinkel2017-11-28
| | | | | | | | | | | | | | | | | | The List module is automatically loaded, but not assigned to a global variable. It can be included in filters by calling `List = require 'List'`. Lists of blocks, lists of inlines, and lists of classes are now given `List` as a metatable, making working with them more convenient. E.g., it is now possible to concatenate lists of inlines using Lua's concatenation operator `..` (requires at least one of the operants to have `List` as a metatable): function Emph (emph) local s = {pandoc.Space(), pandoc.Str 'emphasized'} return pandoc.Span(emph.content .. s) end Closes: #4081
* Temporarily disable round-trip block test for muse reader.John MacFarlane2017-11-28
| | | | See #4107.
* Added --print-highlight-style option.John MacFarlane2017-11-28
| | | | | | | | This generates a JSON version of a highlighting style, which can be saved as a .theme file, modified, and used with `--highlight-style`. Closes #4106. Closes #4096.
* Support `--webtex` for `gfm` output.John MacFarlane2017-11-28
|
* Update tests for new skylighting.John MacFarlane2017-11-28
|
* make normalizeDate more forgiving (#4101)Mauro Bieg2017-11-28
| | | also parse two-digit days, e.g. "April 20, 2017"
* Use skylighting 0.4.4.1.John MacFarlane2017-11-27
| | | | | Closes #4103 (wrong color of unmarked code text when numerLines is used).
* Fix --help output for --highlight-style to include FILE (#4098)Mauro Bieg2017-11-27
| | | Closes #4095.
* Travis: Use ghc 8.2.2 instead of 8.2.1.John MacFarlane2017-11-27
|
* Travis stack nightly build: switch to ghc 8.2.2.John MacFarlane2017-11-27
|
* Muse reader: parse "~~" as non-breaking space in Emacs modeAlexander Krotov2017-11-27
|
* Clearer deprecation warning for --latexmathml, --asciimathml, -m.John MacFarlane2017-11-26
| | | | | Previously we only mentioned `--latexmathml`, even if `-m` was used.
* Muse reader: make code blocks round tripAlexander Krotov2017-11-27
|
* Muse reader: drop common space prefix from list itemsAlexander Krotov2017-11-26
|
* Muse reader: Add partial round trip testAlexander Krotov2017-11-26
|
* Fix comment typo: s/elemnet/element/Alexander Krotov2017-11-25
|
* Muse reader: don't interpret XML entitiesAlexander Krotov2017-11-25
|
* Muse reader: remove `nested`Alexander Krotov2017-11-25
|
* Changelog: fix description of lua filters in 2.0 releaseAlbert Krewinkel2017-11-24
| | | | | | | Lua filters were initially run *after* conventional (JSON) filters. However, this was changed later to make it easier to deal with files in the mediabag. The changelog is updated to describe that feature of the 2.0 release correctly.
* Muse reader: parse markup in definition list termsAlexander Krotov2017-11-24
|