summaryrefslogtreecommitdiff
path: root/src
Commit message (Collapse)AuthorAge
...
* LaTeX reader: be more picky about beamer angle arguments.John MacFarlane2017-03-24
| | | | | We now only allow them if they contain only numbers, spaces, `-`, and `,`.
* Markdown writer: don't emit a simple table if `simple_tables` disabled.John MacFarlane2017-03-24
| | | | Closes #3529.
* Ms writer: changed some names and comments, man -> ms.John MacFarlane2017-03-24
|
* Ms writer: fixed rawblock/inline to accept "ms" format.John MacFarlane2017-03-24
|
* Recognize .roff extension as ms format.John MacFarlane2017-03-24
|
* PDF via groff ms: use -t and -KUTF-8 options to pdfroff.John MacFarlane2017-03-24
|
* Ms writer: Use custom .HRULE macro for horizontal rule.John MacFarlane2017-03-24
|
* Ms writer: warning for non-rendered raw content.John MacFarlane2017-03-24
|
* Allow creation of pdf via groff ms and pdfroff.John MacFarlane2017-03-23
| | | | pandoc -t ms -o output.pdf input.txt
* Ms writer: improved definition lists.John MacFarlane2017-03-23
| | | | | Use standard .IP macro. Also properly escape ".
* Ms writer: use .IP for more standard definition lists.John MacFarlane2017-03-23
|
* Pipe tables: impose minimum cell size.John MacFarlane2017-03-23
| | | | | This might help with #3526. At any rate, it fixes another bug (see test/command/3526.md).
* Grid tables: remove unnecessary extra space in cells.John MacFarlane2017-03-23
|
* Ms writer: fixed hard line breaks.John MacFarlane2017-03-23
|
* Writers.Shared.gridTable: defensive coding around 'maximum'.John MacFarlane2017-03-23
|
* MS writer: updated TODO comment.John MacFarlane2017-03-23
|
* Ms writer: Super/subscript support.John MacFarlane2017-03-23
| | | | | Also added some macro definitions to default template to support subscripts + better superscripts.
* Ms writer: support for fake smallcaps.John MacFarlane2017-03-23
|
* Ms. writer: don't render links in footnotes as footnotes.John MacFarlane2017-03-23
|
* Ms writer: Improved footnotes.John MacFarlane2017-03-23
|
* Ms writer: fixed strong/emph combination.John MacFarlane2017-03-23
| | | | Perhaps something similar is needed in the man writer.
* Initial addition of groff ms writer.John MacFarlane2017-03-23
| | | | | | | | | * New module: Text.Pandoc.Writers.Ms. * New template: default.ms. * The writer uses texmath's new eqn writer to convert math to eqn format, so a ms file produced with this writer should be processed with `groff -ms -e` if it contains math.
* Markdown reader: allow latex macro definitions indented 1-3 spaces.John MacFarlane2017-03-22
| | | | Previously they only worked if nonindented.
* Revert "Experimental change to charWidth in Pretty."John MacFarlane2017-03-22
| | | | This reverts commit c59e31722471ce3a67a41413de4e6a5ecfd00ba1.
* Experimental change to charWidth in Pretty.John MacFarlane2017-03-22
| | | | Hunch that this might help with #3526.
* Plain writer: use _(..) or ^(..) for super/subscript...John MacFarlane2017-03-21
| | | | ...unless unicode super/subscripted characters are available.
* Improve rendering of superscript in plain output.John MacFarlane2017-03-21
| | | | | | | We now handle a few non digit characters (+, -, =, parentheses) for which there are superscripted unicode characters. Closes #3518.
* RST writer: improve grid table output, fix bug with empty rows.John MacFarlane2017-03-21
| | | | | | | Uses the new gridTable in Writers.Shared, which is here improved to better handle 0-width cells. Closes #3516.
* Reuse Writers.Shared.gridTable in Haddock writer.John MacFarlane2017-03-21
|
* Moved more gridTable calculations to Writers.Shared.John MacFarlane2017-03-21
|
* Moved gridTable from Markdown writer to Writers.Shared.John MacFarlane2017-03-21
|
* Add `space_in_atx_header` extension.John MacFarlane2017-03-20
| | | | | | | | | | | | | | | | | This is enabled by default in pandoc and GitHub markdown but not the other flavors. This requirse a space between the opening #'s and the header text in ATX headers (as CommonMark does but many other implementations do not). This is desirable to avoid falsely capturing things ilke #hashtag or #5 Closes #3512.
* Lua filters (#3514)Albert Krewinkel2017-03-20
| | | | | | | | | * Add `--lua-filter` option. This works like `--filter` but takes pathnames of special lua filters and uses the lua interpreter baked into pandoc, so that no external interpreter is needed. Note that lua filters are all applied after regular filters, regardless of their position on the command line. * Add Text.Pandoc.Lua, exporting `runLuaFilter`. Add `pandoc.lua` to data files. * Add private module Text.Pandoc.Lua.PandocModule to supply the default lua module. * Add Tests.Lua to tests. * Add data/pandoc.lua, the lua module pandoc imports when processing its lua filters. * Document in MANUAL.txt.
* docx writer: lang meta, see #1667 (#3515)Mauro Bieg2017-03-20
|
* RST reader: recurse into bodies of unknown directives.John MacFarlane2017-03-19
| | | | | | | | | In most cases it's better to preserve the content than to emit it. This isn't guaranteed to have good results; it will fail spectacularly for unknown raw or verbatim directives. See #3432.
* HTML reader: Better sanity checks on raw HTML.John MacFarlane2017-03-18
| | | | | | This also affects the Markdown reader. Closes #3257.
* 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.
* 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 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.
* RST writer: convert to PandocMonad, report on unrendered raw items.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.