aboutsummaryrefslogtreecommitdiff
path: root/src
AgeCommit message (Collapse)Author
2020-05-14Support implicit_figure extension in commonmark reader.John MacFarlane
2020-05-14auto_identifiers should not be defined with commonmark.John MacFarlane
Only gfm_auto_identifers.
2020-05-14Add commonmark_x output format...John MacFarlane
commonmark with a number of useful extensions (more than gfm).
2020-05-14Trim down githubMarkdownExtensions.John MacFarlane
Previously it included all of the following, which make sense for the legacy markdown_github but not for gfm, since they are part of base commonmark and thus can't be turned off in gfm: - `Ext_all_symbols_escapable` - `Ext_backtick_code_blocks` - `Ext_fenced_code_blocks` - `Ext_space_in_atx_header` - `Ext_intraword_underscores` - `Ext_lists_without_preceding_blankline` - `Ext_shortcut_reference_links` ` These have been removed from `githubMarkdownExtensions`, though they're still turned on for legacy `markdown_github`.
2020-05-14Add generic `attributes` extension.John MacFarlane
This allows attributes to be added to any block or inline element, in principle. (Though in many cases this will be done by adding a Div or Span container, since pandoc's AST doesn't have a slot for attributes for most elements.) Currently this is only possible with the commonmark and gfm readers. Add `Ext_attributes` constructor for `Extension` [API change].
2020-05-14Add fenced_code_attributes to gfm/commonmark extensions.John MacFarlane
2020-05-14header_attributes (for now) in commonmark reader.John MacFarlane
2020-05-14Use latest commonmark-hs.John MacFarlane
Fixes ascii identifiers.
2020-05-14Commonmark reader: Update commonmark-hs version and go back...John MacFarlane
to using built-in auto identifiers.
2020-05-14Run commonmark parser in Identity monad.John MacFarlane
So far this is necessary if we want def lists, task lists, and footnotes.
2020-05-14CommonMark reader: Use native pandoc auto_identifiers.John MacFarlane
2020-05-14Update to latest commonmark-hs.John MacFarlane
2020-05-14Intermediate checkpoint for use of commonmark-hs.John MacFarlane
2020-05-12LaTeX writer: create hypertarget for links with identifier.John MacFarlane
Closes #6360.
2020-05-12Lua: fix regression in package searcherAlbert Krewinkel
This caused `require 'module'` to fail for third party packages. Fixes: #6361
2020-05-08Implement implicit_figures extension for commonmark reader.John MacFarlane
Closes #6350.
2020-05-05Shared.makeSections: omit number attribute when unnumbered class...John MacFarlane
...is present. Previously the attribute was included but given an empty value, and this caused the table of contents creation functions in T.P.Writers.Shared to think these items had numbers, which meant that they were included in the TOC even if the `unlisted` class was used. Closes #6339.
2020-05-05Avoid unnecessary guard (#6340)Joseph C. Sible
2020-05-04Fix mediawiki reader with gfm_auto_identifiers.John MacFarlane
Previously the `-` was being replaced by `_`. Closes #6335.
2020-05-02LaTeX Writer: Add support for customizable alignment of columns in beamer ↵andrebauer
(#6331) Add support for customizable alignment of columns in beamer. Closes #4805, closes #4150.
2020-05-02Lua filters: improve error messages for failing filters (#6332)Albert Krewinkel
Print the Lua error properly instead of displaying their `show` string.
2020-04-30PowerPoint writer: write math input verbatim in speaker notes.Jesse Rosenthal
OMML in speaker notes would lead to corrupt PowerPoint output. We now output the OMML verbatim as LaTeX in the speaker notes. Closes #6301.
2020-04-28Support new Underline element in readers and writers (#6277)Vaibhav Sagar
Deprecate `underlineSpan` in Shared in favor of `Text.Pandoc.Builder.underline`.
2020-04-24RST writer: properly handle images with same alt text.John MacFarlane
Previously we created duplicate references for these in rendering RST. Closes #6194.
2020-04-22AsciiDoc writer: add blank line after Div.John MacFarlane
Closes #6308.
2020-04-20Haddock Writer: Support Haddock tablesJoe Hermaszewski
See this PR on Haddock for details on the table format: https://github.com/haskell/haddock/pull/718
2020-04-18Fix round-trip bug with HTML tables....John MacFarlane
introduced by parsing of table attributes. (The writer always added a style with width, and we would get multiple such styles through successive round trips.)
2020-04-18HTML reader: parse attributes into table attributes.John MacFarlane
2020-04-17Markdown writer: avoid unnecessary escapes before intraword `_`John MacFarlane
when `intraword_underscores` extension is enabled. Closes #6296.
2020-04-17Merge pull request #6211 from tarleb/lua-pandocerrorJohn MacFarlane
API change: create PandocLua type, use PandocError for exceptions
2020-04-17API change: use new type PandocLua for all pandoc Lua operationsAlbert Krewinkel
The new type `PandocLua` is an instance of the `PandocMonad` typeclass and can thus be used in a way similar to `PandocIO`.
2020-04-17Class: generalize PandocIO functions to MonadIOAlbert Krewinkel
2020-04-17LaTeX reader: don't put surrounding Div around Table.John MacFarlane
This reverts a change in the last release; the Div is no longer needed, because we can now put the id right in the Table's attributes. However, writers may still need to be modified to do something with the id in a Table (e.g. create an anchor), so in the short term we may lose the ability to link to tables in some writers.
2020-04-17API change: use PandocError for exceptions in Lua subsystemAlbert Krewinkel
The PandocError type is used throughout the Lua subsystem, all Lua functions throw an exception of this type if an error occurs. The `LuaException` type is removed and no longer exported from `Text.Pandoc.Lua`. In its place, a new constructor `PandocLuaError` is added to PandocError.
2020-04-17Merge pull request #6224 from despresc/better-tablesJohn MacFarlane
2020-04-17Revert 0e48a02 and dependency on base-noprelude...John MacFarlane
which hasn't been updated for ghc 8.10. See discussion at #6187.
2020-04-16Shared: renderTags': use self-closing tag for col element.John MacFarlane
Closes #6295.
2020-04-15Markdown reader: Remove unnecessary qualificationdespresc
2020-04-15Lua: support new tablesAlbert Krewinkel
2020-04-15Modify toLegacyTable to cut up cells, add testsdespresc
Now a cell with dimension (h, w) will be cut up into h*w cells of dimension (1,1), all in the same grid position, with the upper-left holding the original cell contents and the rest being empty.
2020-04-15Use the new builders, modify readers to preserve empty headersdespresc
The Builder.simpleTable now only adds a row to the TableHead when the given header row is not null. This uncovered an inconsistency in the readers: some would unconditionally emit a header filled with empty cells, even if the header was not present. Now every reader has the conditional behaviour. Only the XWiki writer depended on the header row being always present; it now pads its head as necessary.
2020-04-15Adapt to the removal of the RowSpan, ColSpan, RowHeadColumns accessorsdespresc
2020-04-15Adapt to the newest Table type, fix some previous adaptation issuesdespresc
- Writers.Native is now adapted to the new Table type. - Inline captions should now be conditionally wrapped in a Plain, not a Para block. - The toLegacyTable function now lives in Writers.Shared.
2020-04-15Remove the onlySimpleCellBodies function from Shareddespresc
2020-04-15Implement the new Table typedespresc
2020-04-15Markdown Reader: Fix inline code in lists (#6284)Nikolay Yakimov
Closes #6284. Previously inline code containing list markers was sometimes parsed incorrectly.
2020-04-15JATS reader: handle "label" element in section title.John MacFarlane
Closes #6288.
2020-04-13Add an option to disable certificate validation (#6156)Cédric Couralet
This commit adds the option `--no-check-certificate`, which disables certificate checking when resources are fetched by HTTP. Co-authored-by: Cécile Chemin <[email protected]> Co-authored-by: Juliette Fourcot <[email protected]>
2020-04-12RST reader: handle "date::" directive.John MacFarlane
Closes #6276.
2020-04-11LaTeX writer: ensure that `-M csquotes` works even in fragment mode.John MacFarlane
Closes #6265.