aboutsummaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
2020-03-22Small changes to macos release candidate Makefile.John MacFarlane1-2/+2
2020-03-22Fixes to 'notarize' target to preserve hardened runtime.John MacFarlane1-2/+2
2020-03-22macos/Makefile - add notarize target.John MacFarlane1-1/+7
2020-03-22Actions/release-candidate/macos: set up to create package locally.John MacFarlane1-13/+4
We need to sign the binaries before inserting them into the package, so this should be done locally.
2020-03-22Add new distribution-creating Makefile to macos directory.John MacFarlane1-0/+30
2020-03-22Remove old script to create macos package.John MacFarlane1-86/+0
We now do this in CI.
2020-03-22Text.Pandoc.Class: extract submodules PandocIO, PandocPureAlbert Krewinkel4-393/+448
2020-03-21Class: fix missing import when data files are not embeddedAlbert Krewinkel1-0/+3
2020-03-20Make MANUAL more explicit about NBSP handling by all_symbols_escapable (#6201)Fabien Schurter1-3/+6
Fixes #6154.
2020-03-19Add to html5 attributes.John MacFarlane1-0/+7
Add: allow, autocapitalize, decoding, enterkeyhint, imagesizes, imagesrcset, loading.
2020-03-19Jira reader: fix parsing of tables without preceding blanklineAlbert Krewinkel3-2/+7
A bug was fixed which caused faulty parsing if a table was not preceded by a newline and the first table cell had no space after the initial `|` characters. Fixes: #6198
2020-03-18Jira reader: fix parsing of strikeout, emphasisAlbert Krewinkel3-2/+6
A bug was fixed which caused non-emphasized text containing digits and/or non-special symbols (like dots) to sometimes be parsed incorrectly. Fixes: #6196
2020-03-16trypandoc: Add checkbox for standalone option (#6189)Mike Tzou2-3/+13
2020-03-15make changes_github: use details tag to make changelog collapsible.John MacFarlane2-1/+7
2020-03-15Update filter code in doc/filters.md...John MacFarlane1-7/+21
so it works with latest pandoc. Closes #6185.
2020-03-15Improvements to trypandoc (#6188)Mike Tzou1-5/+6
* Use "strict mode" for javascript code * Fetch resources over https Otherwise it will depend on the protocol of the webpage served which is a bad idea. * Remove unnecessary attributes Those attributes are not required in HTML5.
2020-03-15Use implicit Prelude (#6187)Albert Krewinkel160-353/+33
* Use implicit Prelude The previous behavior was introduced as a fix for #4464. It seems that this change alone did not fix the issue, and `stack ghci` and `cabal repl` only work with GHC 8.4.1 or newer, as no custom Prelude is loaded for these versions. Given this, it seems cleaner to revert to the implicit Prelude. * PandocMonad: remove outdated check for base version Only base versions 4.9 and later are supported, the check for `MIN_VERSION_base(4,8,0)` is therefore unnecessary. * Always use custom prelude Previously, the custom prelude was used only with older GHC versions, as a workaround for problems with ghci. The ghci problems are resolved by replacing package `base` with `base-noprelude`, allowing for consistent use of the custom prelude across all GHC versions.
2020-03-15PandocMonad: remove outdated check for base versionAlbert Krewinkel1-6/+1
Only base versions 4.9 and later are supported, the check for `MIN_VERSION_base(4,8,0)` is therefore unnecessary.
2020-03-14Subdivide Text.Pandoc.Class into small modules (#6106)Albert Krewinkel4-695/+825
* Extract CommonState into submodule * Extract PandocMonad into submodule * PandocMonad: ensure all functions have Haddock documentation
2020-03-13Update copyright year (#6186)Albert Krewinkel175-204/+221
* Update copyright year * Copyright: add notes for Lua and Jira modules
2020-03-13tools: delete Lua documentation helper cruftAlbert Krewinkel3-95/+0
The tools were useful to generate documentation from the Lua sources. However, most Lua functions are defined in Haskell, and the even documentation of functions written in Lua has been updated manually for quite a while now. The unused helper scripts, which have bit-rot to the point that they now produce broken links, are therefore removed.
2020-03-13Lua marshalling: Remove unused language extensionsAlbert Krewinkel4-8/+3
2020-03-13Jira reader: support colored inline text, indented listsAlbert Krewinkel4-2/+8
* Support for colored inlines has been added. * Lists are now allowed to be indented; i.e., lists are still recognized if list markers are preceded by spaces. Closes: #6183, #6184
2020-03-10linux/Dockerfile: upgrade to alpine 3.11Albert Krewinkel1-9/+16
Closes: #6180
2020-03-07Ms writer: fix definition lists so indent even when...John MacFarlane2-42/+43
paragraph indent is set to 0 (as is the default). Also ensure indent for display math that falls back to TeX.
2020-03-06Ms writer: use .QS/.QE instead of .RS/.RE for block quotes.John MacFarlane2-15/+15
2020-03-05Fix man reader test for previous change.John MacFarlane1-1/+1
2020-03-05Fix parsing of `\'` in man/ms readers.John MacFarlane1-1/+1
It was being parsed as a backtick. Closes #6175.
2020-03-05Fix parsing of `\.` in man/ms readers.John MacFarlane1-1/+1
Previously due to a typo it was being parsed as `` ` ``. Closes #6175.
2020-03-04EPUB writer: fix regression on detection of front/back/bodymatter.John MacFarlane1-1/+2
This bug caused sections with epub:type "dedication" to be misplaced in bodymatter instead of frontmatter as specified in the manual. The same problem would affect other epub:types. The pattern matching needed to be changed with the use of `makeSection`. Closes #6170.
2020-03-02PDF via wkhtmltopdf: put user-specified options last.John MacFarlane1-2/+2
Certain options (e.g. "cover") need to come after flags on the command line. Closes #6171.
2020-02-21Fix table alignment when heading begins with t.John MacFarlane1-1/+1
Due to a typo (`t` instead of `\t`) we were center aligning column headings that begin with a lowercase t! Closes #6153.
2020-02-19Text.Pandoc.App: set resource path at the beginning...John MacFarlane1-1/+2
...so it can affect things like include-in-header. See #5982.
2020-02-17Revert "stack.yaml - switch to lts-15."John MacFarlane1-1/+11
This reverts commit a238128a8e3c8d1942bae26d5eb4d42a8ed2fa39. This version fails on Windows. We get the following log output: Stack has not been tested with GHC versions above 8.6, and using 8.8.2, this may fail Stack has not been tested with Cabal versions above 2.4, but version 3.0.1.0 was found, this may fail Building all executables for `pandoc' once. After a successful build of all of them, only specified executables will be rebuilt. pandoc> configure (lib + exe + test) Configuring pandoc-2.9.2... pandoc> build (lib + exe + test) Preprocessing library for pandoc-2.9.2.. Building library for pandoc-2.9.2.. [ 1 of 162] Compiling Paths_pandoc [ 2 of 162] Compiling Text.Pandoc.App.FormatHeuristics [ 3 of 162] Compiling Text.Pandoc.Asciify [ 4 of 162] Compiling Text.Pandoc.CSV [ 5 of 162] Compiling Text.Pandoc.Data C:\Users\runneradmin\AppData\Roaming\stack\snapshots\9b7c3910\lib\x86_64-windows-ghc-8.8.2\texmath-0.12.0.1-LHa5Nt7Y9k12Dq03wVcYbb\HStexmath-0.12.0.1-LHa5Nt7Y9k12Dq03wVcYbb.o: unhandled PEi386 relocation type 0 ghc.exe: unable to load package `texmath-0.12.0.1' C:\Users\runneradmin\AppData\Roaming\stack\setup-exe-cache\x86_64-windows\Cabal-simple_Z6RU0evB_3.0.1.0_ghc-8.8.2.exe --builddir=.stack-work\dist\29cc6475 build lib:pandoc exe:pandoc test:test-pandoc --ghc-options " -fdiagnostics-color=always"
2020-02-17stack.yaml - switch to lts-15.John MacFarlane1-11/+1
2020-02-17Revert "Allow specifying string value in metadata using `!!literal` tag."John MacFarlane3-23/+5
This reverts commit 3493d6afaa6586c46898cf8bdb0c45bb70d31f28. This might be worth considering in the future, but let's not do it yet...the additional complexity needs a better justification.
2020-02-17Allow specifying string value in metadata using `!!literal` tag.John MacFarlane3-5/+23
This is experimental. Normally metadata values are interpreted as markdown, but if the !!literal tag is used they will be interpreted as plain strings. We need to consider whether this can still be implemented if we switch back from HsYAML to yaml for performance reasons.
2020-02-17Remove redundant `otherwise` guard in inlineToAsciiDoc (#6146)Ryan Scott1-1/+0
The `RawInline` case in `inlineToAsciiDoc` currenty looks like this: ```hs inlineToAsciiDoc _ il@(RawInline f s) | f == "asciidoc" = return $ literal s | otherwise = do report $ InlineNotRendered il return empty | otherwise = return empty ``` Notice how there are there are two overlapping `otherwise` guards. The second `otherwise` guard is completely unreachable, so this patch removes it.
2020-02-16Fix typo in changelog.John MacFarlane1-1/+1
2020-02-16Small changelog fix.John MacFarlane1-6/+3
2020-02-15Use pandoc-citeproc 0.17.John MacFarlane2-2/+2
2020-02-15Update README.md.John MacFarlane1-43/+47
2020-02-15Update changelog and man page.John MacFarlane4-29/+244
2020-02-15Use latest texmath.John MacFarlane2-2/+2
2020-02-14make pandoc-templates: copy README and styles.*.John MacFarlane1-2/+2
2020-02-14Fixes: group biblatex citations even with prefix and suffix (#6058)Ethan Riley2-25/+74
Closes #5849. Previously biblatex citations were only grouped if there was no prefix. This patch allows them to be grouped in subgroups split by prefixes and suffixes, which allows better citation sorting.
2020-02-13A bit more cleanup (#6141)Joseph C. Sible5-34/+32
* Remove unnecessary fmaps and only do toMilliseconds once * Share the input tuple intead of making a new one * Lift return out of if * Simplify case statements * Lift DottedNum out of the case statements * Use st instead of mbs * Use setState instead of updateState now that we have the whole state around
2020-02-13Add highlight directive to the rST reader (#6140)Lucas Escot4-4/+41
2020-02-12Add Text.Pandoc.Image with unexported svgToPng.John MacFarlane2-0/+41
2020-02-12Introduce new format variants for JATS (#6067)Albert Krewinkel17-55/+2474
New formats: - `jats_archiving` for the "Archiving and Interchange Tag Set", - `jats_publishing` for the "Journal Publishing Tag Set", and - `jats_articleauthoring` for the "Article Authoring Tag Set." The "jats" output format is now an alias for "jats_archiving". Closes: #6014