aboutsummaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2019-09-22Revert "Class: remove stStdin and readStdinStrict."sandboxedJohn MacFarlane
This reverts commit 4b54454c8f49678d48e7fb33fd7f5471672ad3c7.
2019-09-22Revert "Add io method to PandocMonad."John MacFarlane
This reverts commit 2d19ebc4e68f28acaf2cc965faeaa841a9156b19.
2019-09-22Revert "Add PandocSandboxError constructor to PandocError. [API change]"John MacFarlane
This reverts commit 9592ebb9e49c021ffe97089e4ee17f280c3a9a0c.
2019-09-22Revert "New approach for io method, with less type fussing."John MacFarlane
This reverts commit c90619cc0f1823b8361fdeeedfa6859a68c19bf6.
2019-09-22Revert "Steps towards making makePDF polymorphic."John MacFarlane
This reverts commit 4e3893515b79fa0831736ff78ee2f9593d2c2c58.
2019-09-22Revert "CLass: add writeMedia to PandocMonad (also extractMedia)."John MacFarlane
This reverts commit 77dc40ea0fe72247493e675d83893725bf545519.
2019-09-22CLass: add writeMedia to PandocMonad (also extractMedia).John MacFarlane
These will raise on error when run in non-IO monads.
2019-09-22Steps towards making makePDF polymorphic.John MacFarlane
2019-09-22New approach for io method, with less type fussing.John MacFarlane
2019-09-22Add PandocSandboxError constructor to PandocError. [API change]John MacFarlane
2019-09-22Add io method to PandocMonad.John MacFarlane
2019-09-22Class: remove stStdin and readStdinStrict.John MacFarlane
Instead, treat "-" as an alias for stdin in readFileLazy/Strict.
2019-09-22More MANUAL updates.John MacFarlane
2019-09-22Updates to manual about filters.John MacFarlane
2019-09-22With --sandboxed, use only default data.John MacFarlane
2019-09-22T.P.App: make more parts polymorphic.John MacFarlane
2019-09-22Class: export readStdinStrict method, readTextFile [API change].John MacFarlane
readStdinStrict is now a method of the PandocMonad typeclass. readTextFile is a new exported function. PandocPure now contains a stStdin field.
2019-09-22Added --sandboxed option (but it doesn't yet do anything).John MacFarlane
2019-09-22Add docs for `--sandboxed` options, and add to "Note on security."John MacFarlane
See #5045.
2019-09-22Switch to lts-14 resolver and ghc 8.6.John MacFarlane
2019-09-22Require latest texmath.John MacFarlane
2019-09-22RST reader: Fixed parsing of indented blocks.John MacFarlane
We were requiring consistent indentation, but this isn't required by RST, as long as each nonblank line of the block has *some* indentation. Closes #5753.
2019-09-22[Docx Writer] Re-use Readers.Docx.Parse for StyleMap (#5766)Nikolay Yakimov
* [Docx Parser] Move style-parsing-specific code to a new module * [Docx Writer] Re-use Readers.Docx.Parse.Styles for StyleMap * [Docx Writer] Move Readers.Docx.StyleMap to Writers.Docx.StyleMap It's never used outside of writer code, so it makes more sense to scope it under writers really.
2019-09-22Make `plain` output plainer.John MacFarlane
Previously we used the following Project Gutenberg conventions for plain output: - extra space before and after level 1 and 2 headings - all-caps for strong emphasis `LIKE THIS` - underscores surrounding regular emphasis `_like this_` This commit makes `plain` output plainer. Strong and Emph inlines are rendered without special formatting. Headings are also rendered without special formatting, and with only one blank line following. To restore the former behavior, use `-t plain+gutenberg`. API change: Add `Ext_gutenberg` constructor to `Extension`. See #5741.
2019-09-22Use released doctemplatesJohn MacFarlane
2019-09-22Use HsYAML-0.2.0.0John MacFarlane
Most of this is due to @vijayphoenix (#5704), but it needed some revisions to integrate with current master, and to use the released HsYAML. Closes #5704.
2019-09-22Preliminary GitHub action for release-candidate building.John MacFarlane
2019-09-22ci action: use list of paths to ignore.John MacFarlane
2019-09-21Nightly - removed diagnostics.John MacFarlane
2019-09-21Actions ci - trigger on pull_request as well as push.John MacFarlane
2019-09-21Nightly - another attempt to fix windows.John MacFarlane
2019-09-21Merge branch 'lierdakil-docx-reader-styles'John MacFarlane
2019-09-21Update documentation wrt docx reader custom style namesNikolay Yakimov
2019-09-21[Docx Reader] Update testsNikolay Yakimov
Notice this commit updates lists.docx. The old test file contained references to "ListParagraph" style, which should never leak outside of pandoc, so I'm not sure what that was supposed to test for exactly.
2019-09-21[Docx Writer] Consistently use style names, not style idsNikolay Yakimov
Styles that this change affects: paragraph styles: Author, Abstract, Compact, Figure, Captioned Figure, Image Caption, First Paragraph, Source Code, Table Caption, Definition, Definition Term; character styles: Verbatim Char, token styles (those with names ending in Tok)
2019-09-21[Docx Writer] Code clean-upNikolay Yakimov
Reduce code duplication, remove redundant brackets
2019-09-21[Docx Reader] Use style names, not ids, for assigning semantic meaningNikolay Yakimov
Motivating issues: #5523, #5052, #5074 Style name comparisons are case-insensitive, since those are case-insensitive in Word. w:styleId will be used as style name if w:name is missing (this should only happen for malformed docx and is kept as a fallback to avoid failing altogether on malformed documents) Block quote detection code moved from Docx.Parser to Readers.Docx Code styles, i.e. "Source Code" and "Verbatim Char" now honor style inheritance Docx Reader now honours "Compact" style (used in Pandoc-generated docx). The side-effect is that "Compact" style no longer shows up in docx+styles output. Styles inherited from "Compact" will still show up. Removed obsolete list-item style from divsToKeep. That didn't really do anything for a while now. Add newtypes to differentiate between style names, ids, and different style types (that is, paragraph and character styles) Since docx style names can have spaces in them, and pandoc-markdown classes can't, anywhere when style name is used as a class name, spaces are replaced with ASCII dashes `-`. Get rid of extraneous intermediate types, carrying styleId information. Instead, styleId is saved with other style data. Use RunStyle for inline style definitions only (lacking styleId and styleName); for Character Styles use CharStyle type (which is basicaly RunStyle with styleId and StyleName bolted onto it).
2019-09-21[Docx Reader] Code clean-upNikolay Yakimov
Reduce code duplication, remove redundant brackets, use newtype instead of data where appropriate
2019-09-21Add cabal.project.local to .gitignoreNikolay Yakimov
2019-09-21Nightlies - another attempt to fix windows build.John MacFarlane
2019-09-20Nightlies - 6 hour schedule for now.John MacFarlane
2019-09-20Changes to Slides to be more flexible with Div structure.John MacFarlane
Previously if you had ``` ::: #foo c ::: ``` slide level would be 1, not 2.
2019-09-20Preserve built-in styles in DOCX with custom style (#5670)Ben Steinberg
This commit prevents custom styles on divs and spans from overriding styles on certain elements inside them, like headings, blockquotes, and links. On those elements, the "native" style is required for the element to display correctly. This change also allows nesting of custom styles; in order to do so, it removes the default "Compact" style applied to Plain blocks, except when inside a table.
2019-09-20Nightly - more windows tweaks.John MacFarlane
2019-09-20Nightlies - more windows diagnostics.John MacFarlane
2019-09-20Bug fixes to EPUB chapter splitting.John MacFarlane
2019-09-20Nightlies - run every hour for debug.John MacFarlane
2019-09-20nightlies - more windows diagnostics.John MacFarlane
2019-09-20Nightly - use directory instead of suffix with date.John MacFarlane
2019-09-20Nightly - fix windows renaming with suffix.John MacFarlane