Commit Graph

13317 Commits

Author SHA1 Message Date
John MacFarlane 1252ea4bd9 Use latest commonmark-hs in cabal.project. 2020-05-14 09:34:10 -07:00
John MacFarlane edf630442c Support implicit_figure extension in commonmark reader. 2020-05-14 09:32:19 -07:00
John MacFarlane 28c2c8e96b Use latest commonmark-hs. 2020-05-14 09:09:01 -07:00
John MacFarlane bba0a5b230 auto_identifiers should not be defined with commonmark.
Only gfm_auto_identifers.
2020-05-14 09:00:35 -07:00
John MacFarlane 041ab7b0ac Make base lower bound 4.10, since we don't support ghc 8.0 any more. 2020-05-14 09:00:35 -07:00
John MacFarlane 8433431540 Note that we support ghc 8.2 to present (not 8.0). 2020-05-14 09:00:35 -07:00
John MacFarlane 1c0b846a1e Update tested-with in pandoc.cabal. 2020-05-14 09:00:35 -07:00
John MacFarlane bccd8dcc97 Remove ghc 8.0.2 CI test. 2020-05-14 09:00:35 -07:00
John MacFarlane 260c1121b2 Use latest commonmark-hs. 2020-05-14 09:00:35 -07:00
John MacFarlane 52c5c60c99 Set fail-fast to false to diagnose issue. 2020-05-14 09:00:35 -07:00
John MacFarlane 91c6d5c5dc Use latest commonmark-hs commit. 2020-05-14 09:00:35 -07:00
John MacFarlane 23082803cd Fix cabal.project. 2020-05-14 09:00:35 -07:00
John MacFarlane d3396e2326 Add commonmark_x output format...
commonmark with a number of useful extensions (more than gfm).
2020-05-14 09:00:35 -07:00
John MacFarlane afe6533c19 Trim down githubMarkdownExtensions.
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-14 09:00:35 -07:00
John MacFarlane a4366feccb Use latest commonmark-hs. 2020-05-14 09:00:35 -07:00
John MacFarlane 7b9deafa86 Use latest commonmark-hs. 2020-05-14 09:00:35 -07:00
John MacFarlane fdcbe4b39b Add generic attributes extension.
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-14 09:00:35 -07:00
John MacFarlane 610a16afeb Update to lastest commonmark-hs version. 2020-05-14 09:00:35 -07:00
John MacFarlane 16cadd3483 Add fenced_code_attributes to gfm/commonmark extensions. 2020-05-14 09:00:35 -07:00
John MacFarlane 8760e0c55f Update commonmark-hs version. 2020-05-14 09:00:35 -07:00
John MacFarlane dd0e2a98a0 Use latest commonmark-hs. 2020-05-14 09:00:35 -07:00
John MacFarlane 566059d907 header_attributes (for now) in commonmark reader. 2020-05-14 09:00:35 -07:00
John MacFarlane 466747c055 Use latest commonmark-hs.
Fixes ascii identifiers.
2020-05-14 09:00:35 -07:00
John MacFarlane 106bd76648 Commonmark reader: Update commonmark-hs version and go back...
to using built-in auto identifiers.
2020-05-14 09:00:35 -07:00
John MacFarlane 7923d53ca2 Run commonmark parser in Identity monad.
So far this is necessary if we want def lists, task lists,
and footnotes.
2020-05-14 09:00:35 -07:00
John MacFarlane 9b3b9da2c5 CommonMark reader: Use native pandoc auto_identifiers. 2020-05-14 09:00:35 -07:00
John MacFarlane cc7793847f Update to latest commonmark-hs. 2020-05-14 09:00:35 -07:00
John MacFarlane 5b01208434 Update commonmark-hs version 2020-05-14 09:00:35 -07:00
John MacFarlane 48cc6c4461 Intermediate checkpoint for use of commonmark-hs. 2020-05-14 09:00:35 -07:00
Lila b3cfdc2c7a Correct license listed in cabal
`GPL-2` is interpreted as GPLv2 only, however the actual license is GPLv2 or later
2020-05-13 22:27:44 +02:00
John MacFarlane be9e93d4ae LaTeX writer: create hypertarget for links with identifier.
Closes #6360.
2020-05-12 14:37:07 -07:00
John MacFarlane 46179d5b3e Use latest skylighting.
This adds `aria-hidden="true"` to the empty a elements, which
helps people who use screen readers.
2020-05-12 14:37:07 -07:00
Albert Krewinkel 9c76c52e9b Lua: fix regression in package searcher
This caused `require 'module'` to fail for third party packages.

Fixes: #6361
2020-05-12 17:10:30 +02:00
John MacFarlane 82eb4df284 Fix misleading note about image size conversions in MANUAL.
Closes #6353.
2020-05-10 17:20:47 -07:00
John MacFarlane 8fc57664f8 Implement implicit_figures extension for commonmark reader.
Closes #6350.
2020-05-08 07:56:54 -07:00
Jake Zimmerman e7ac57d04c Update revealjs template with newly available options (#6347)
I wanted to use an option and realized that the default pandoc template
didn't pass it through, so I went through and found all the options that
Reveal.js advertises but that Pandoc's template doesn't support.

<https://github.com/hakimel/reveal.js#configuration>

I also noticed that rollingLinks isn't a setting anymore, but it's fine
to keep it in the template because people might be using an old version
of Reveal.js (via `revealjs-url`) that still has this option.
2020-05-07 10:03:41 -07:00
John MacFarlane 83880b0dbc Shared.makeSections: omit number attribute when unnumbered class...
...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-05 14:31:48 -07:00
Joseph C. Sible 6fad52b057 Avoid unnecessary guard (#6340) 2020-05-05 08:46:35 -07:00
Joseph C. Sible 761fcc8cae Remove unnecessary hlint ignores (#6341)
In modern hlint, the spurious parse errors are gone now that it no
longer uses HSE, and it's also smart enough to avoid the bad "Use =="
suggestions itself.
2020-05-05 08:45:32 -07:00
John MacFarlane 1918944c99 Add needed dependency to stack.yaml. 2020-05-04 23:01:42 -07:00
John MacFarlane 8d0c124e5f Update dependency versions in stack.yaml. 2020-05-04 14:47:00 -07:00
John MacFarlane d3ec53b3cc Revert "Use lts-15.11 stack"
This reverts commit b78fb28898.
2020-05-04 14:44:08 -07:00
John MacFarlane de066cc7f6 Revert "Windows CI: try adding -fexternal-interpreter as ghc option."
This reverts commit 47bfcfb406.
2020-05-04 14:34:56 -07:00
John MacFarlane 47bfcfb406 Windows CI: try adding -fexternal-interpreter as ghc option. 2020-05-04 12:17:38 -07:00
John MacFarlane 2662a60db2 Revert "Try downgrading HsYAML on stack to 0.2.0.0."
This reverts commit 32d5d6c80b.
2020-05-04 12:14:38 -07:00
John MacFarlane 32d5d6c80b Try downgrading HsYAML on stack to 0.2.0.0.
to deal with the access violation we get in CI windows:
https://github.com/jgm/pandoc/runs/643362477?check_suite_focus=true
2020-05-04 09:35:41 -07:00
John MacFarlane 9e5ccaca61 Revert "Use 'set __COMPAT_LAYER=' in Windows CI builds."
This reverts commit 030c23e049.
2020-05-04 09:34:26 -07:00
John MacFarlane 680793803a Fix mediawiki reader with gfm_auto_identifiers.
Previously the `-` was being replaced by `_`.
Closes #6335.
2020-05-04 09:20:27 -07:00
John MacFarlane 030c23e049 Use 'set __COMPAT_LAYER=' in Windows CI builds.
It is suggested at
https://github.com/commercialhaskell/stack/issues/3765
that this may solve the "access violation" we're currently
getting on Windows CI with ghc 8.8.
2020-05-04 08:44:59 -07:00
John MacFarlane 5b7364d02f Revert "Try using -fexternal-interpreter to avoid access violation on Windows CI."
This reverts commit 58115dd07f.
2020-05-04 08:43:02 -07:00