aboutsummaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
2017-12-06hlint Muse reader and testsAlexander Krotov2-8/+8
2017-12-06Muse reader: add test for #disable-tables directive in Emacs modeAlexander Krotov1-7/+13
2017-12-06Muse reader: don't allow emphasis to be preceded by letterAlexander Krotov2-2/+16
2017-12-05Muse reader: support multiline directives in Amusewiki modeAlexander Krotov1-4/+24
2017-12-04reveal.js template: add title-slide identifier to title slide.John MacFarlane1-1/+1
This allows it to be styled more easily. Closes #4120.
2017-12-04Rewrite empty_paragraphs test so it will run on Windows.John MacFarlane1-4/+4
2017-12-04Markdown reader: Don't parse native div as table caption.John MacFarlane2-1/+19
Closes #4119.
2017-12-04Add `empty_paragraphs` extension.John MacFarlane15-80/+175
* Deprecate `--strip-empty-paragraphs` option. Instead we now use an `empty_paragraphs` extension that can be enabled on the reader or writer. By default, disabled. * Add `Ext_empty_paragraphs` constructor to `Extension`. * Revert "Docx reader: don't strip out empty paragraphs." This reverts commit d6c58eb836f033a48955796de4d9ffb3b30e297b. * Implement `empty_paragraphs` extension in docx reader and writer, opendocument writer, html reader and writer. * Add tests for `empty_paragraphs` extension.
2017-12-04MANUAL: note on extensions in gfm.John MacFarlane1-2/+3
2017-12-04Muse reader: add underline support in Emacs Muse modeAlexander Krotov2-1/+11
2017-12-03Update changelog.John MacFarlane1-3/+17
2017-12-03Include default CSS for 'underline' class in HTML-based templates.John MacFarlane16-0/+16
2017-12-03Removed unnecessary import.John MacFarlane1-1/+1
2017-12-03Test for #4113.John MacFarlane1-0/+12
Closes #4113.
2017-12-03commonmark/gfm writer: use raw html for native divs/spans.John MacFarlane1-4/+14
This allows a pandoc markdown native div or span to be rendered in gfm using raw html tags.
2017-12-03HTML writer: export tagWithAttributes.John MacFarlane1-2/+19
This is a helper allowing other writers to create single HTML tags.
2017-12-03commonmark/gfm writer: implement `raw_html` and `raw_tex` extensions.John MacFarlane1-6/+12
Note that `raw_html` is enabled by default for `gfm`, while `raw_tex` is disabled by default.
2017-12-02Bump bounds for binary, http-types, tasty-hunitJohn MacFarlane1-3/+3
2017-12-02Update man page and MANUAL date.John MacFarlane2-4/+19
2017-12-02Update changelog.John MacFarlane1-1/+18
2017-12-02Docx writer: allow empty paragraphs.John MacFarlane2-4/+8
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.)
2017-12-02Docx reader: don't strip out empty paragraphs.John MacFarlane5-19/+39
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.
2017-12-02Shared.blocksToInlines: rewrote using builder.John MacFarlane1-24/+27
This gives us automatic normalization, so we don't get for example two consecutive Spaces.
2017-12-02Add --strip-empty-paragraphs option.John MacFarlane3-5/+30
This works for any input format.
2017-12-02Bump to 2.0.4, update changelog.John MacFarlane2-1/+130
2017-12-02Update tested-with.John MacFarlane1-1/+1
2017-12-02LaTeX writer: escape `_` in code with --listings.John MacFarlane1-1/+1
2017-12-01revealjs template: added a necessary escape.John MacFarlane1-1/+1
2017-12-01reveal.js template: include tex2jax configuration.John MacFarlane1-0/+12
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.
2017-12-01LaTeX writer: allow specifying just width or height for image size.John MacFarlane2-2/+7
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.
2017-12-01LaTeX writer: escape ~ in code with --listings.John MacFarlane1-1/+1
Closes #4111.
2017-12-01Revert "LaTeX writer: Add keepaspectratio to includegraphics..."John MacFarlane2-7/+2
This reverts commit 171187a4527497701b3c77bd56cea2d770d4e3b0.
2017-12-01pandoc.lua: set metatable on List MetaValuesAlbert Krewinkel1-10/+10
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.
2017-12-01Lua/StackInstances: push Pandoc and Meta via constructorAlbert Krewinkel3-7/+31
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.
2017-12-01lua-filters.md: add documentation for pandoc.ListAlbert Krewinkel2-10/+128
2017-12-01List.lua: add missing fixes as discussed in #4099Albert Krewinkel3-24/+35
The changes were missing due to an error while using git.
2017-11-30LaTeX writer: Add keepaspectratio to includegraphics...John MacFarlane2-2/+7
...if only one of height/width is given.
2017-11-30Use latest tagsoup.John MacFarlane3-4/+6
This fixes a bug in parsing tags with `&` following. Closes #4094. Closes #4088.
2017-11-29Support beamer `\alert` in LaTeX reader. Closes #4091.John MacFarlane2-0/+7
2017-11-29List.lua: add _VERSION to module, drop unused varAlbert Krewinkel1-4/+3
2017-11-29Let papersizes a0, a1, a2, ... be case-insensitive in LaTeX and ConTeXt.John MacFarlane2-5/+8
2017-11-29Muse reader: correctly remove indentation from notesAlexander Krotov2-2/+10
Exactly one space is required and considered to be part of the marker.
2017-11-28Add basic lua List module (#4099)Albert Krewinkel4-46/+174
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
2017-11-28Temporarily disable round-trip block test for muse reader.John MacFarlane1-4/+6
See #4107.
2017-11-28Added --print-highlight-style option.John MacFarlane2-3/+36
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.
2017-11-28Support `--webtex` for `gfm` output.John MacFarlane2-9/+18
2017-11-28Update tests for new skylighting.John MacFarlane2-4/+8
2017-11-28make normalizeDate more forgiving (#4101)Mauro Bieg1-1/+1
also parse two-digit days, e.g. "April 20, 2017"
2017-11-27Use skylighting 0.4.4.1.John MacFarlane3-3/+3
Closes #4103 (wrong color of unmarked code text when numerLines is used).
2017-11-27Fix --help output for --highlight-style to include FILE (#4098)Mauro Bieg1-1/+1
Closes #4095.