17683 Commits
Author SHA1 Message Date
John MacFarlane 687155e2bd Add command test for #9121. pandoc-lua-engine-0.3.2 pandoc-server-0.1.0.8 3.4 pandoc-cli-3.4 2024-09-10 09:16:14 -07:00
John MacFarlane 1166d331a5 More stack.yaml tweaks. 2024-09-10 09:15:24 -07:00
John MacFarlane 320a8add03 Markdown writer: fix tex_math_gfm output for display math. 2024-09-10 08:22:48 -07:00
John MacFarlane 2d299b085f stack.yaml - add crypton-connection to work with tls 2.1. 2024-09-10 08:18:05 -07:00
John MacFarlane b02654948c Update AUTHORS.md. 2024-09-09 22:31:10 -07:00
John MacFarlane 31d3406972 stack.yaml - remove unneeded line. 2024-09-09 22:21:38 -07:00
John MacFarlane 85515aee24 Update stack.yaml. 2024-09-09 22:20:28 -07:00
John MacFarlane f50fc8c200 Regenerated README.md 2024-09-09 22:20:19 -07:00
John MacFarlane 8bf03fd337 Added missing extra-source-files. 2024-09-09 22:20:02 -07:00
John MacFarlane 6f6a736844 Update man pages. 2024-09-09 22:14:43 -07:00
John MacFarlane 103149d75d Bump pandoc-server to 0.1.0.8. 2024-09-09 22:13:36 -07:00
John MacFarlane a0e0973c63 Bump pandoc-lua-engine to 0.3.2. 2024-09-09 22:13:27 -07:00
John MacFarlane 766ebd73fe Bump pandoc-cli to 3.4, depend on pandoc 3.4. 2024-09-09 22:13:15 -07:00
John MacFarlane e245d61804 Bump to 3.4, update changelog. 2024-09-09 22:13:05 -07:00
John MacFarlane 94f9727b2f ANSI writer: use black rather than green for headings. 2024-09-09 21:49:42 -07:00
John MacFarlane 343f0a0752 Use released skylighting-core, skylighting. 2024-09-09 20:18:56 -07:00
Albert Krewinkel c0f995d0a3 Remove Text.Pandoc.Shared.stripEmptyParagraphs [API change]
This is no longer used.
2024-09-09 20:09:13 -07:00
Pau RE b7bcc42590 Add unofficial gemini URI scheme 2024-09-09 20:08:18 -07:00
thomjur 1881aef09e --docx+citations: Add "SuppressAuthor" and "AuthorOnly" to citationMode 2024-09-09 20:07:18 -07:00
Sebbones 7e04673fea Support custom-style attribute for docx table 2024-09-09 20:05:42 -07:00
John MacFarlane 836de16e3b Use released versions of typst, texmath. 2024-09-09 18:25:31 -07:00
John MacFarlane a6df5d70ba stack.yaml - depend on latest hslua-module-doclayout. 2024-09-09 10:30:33 -07:00
John MacFarlane 4a42a7d4a9 Tests.Readers.Markdown: avoid use of 'head'. 2024-09-09 09:15:54 -07:00
John MacFarlane 2edda1e6f0 stack.yaml - fix duplicate packages. 2024-09-09 09:11:57 -07:00
John MacFarlane 90e8725f5b Tests: use 'drop 1' instead of partial function 'tail'. 2024-09-09 09:03:17 -07:00
John MacFarlane 08a5ef6080 Use released (Hackage revision) hslua-module-doclayout. 2024-09-09 08:58:34 -07:00
John MacFarlane 6cbb0d322a Fix stack.yaml syntax. 2024-09-09 08:49:52 -07:00
John MacFarlane 0a362141cf Avoid use of 'head' in Tests.Shared. 2024-09-09 08:28:19 -07:00
John MacFarlane a256f007cf Depend on doclayout 0.5. 2024-09-09 08:18:28 -07:00
John MacFarlane 7db0569250 Work around absence of NonEmpty.singleton in earlier base versions. 2024-09-09 08:18:08 -07:00
John MacFarlane 7b74f7b909 Use released doclayout. 2024-09-08 23:26:47 -07:00
John MacFarlane 4c6acac312 Require doclayout >= 0.5. 2024-09-08 23:13:57 -07:00
John MacFarlane ace048515f OpenDocument writer: Removed another use of 'head'. 2024-09-08 21:47:25 -07:00
John MacFarlane 7602e4995f T.P.Readers.ODT.Generic.XMLConverter: remove partial functions. 2024-09-08 21:38:28 -07:00
John MacFarlane 185c29b4b2 Typst reader: change how "block" elements are handled.
Previously they were always parsed as divs.  But actually they
can occur in some "inline" contexts.  Now we first try to parse
them as inlines, and only as blocks if that fails.  A surrounding
Div or Span element is added only if there is an identifier.
2024-09-08 14:50:18 -07:00
John MacFarlane 4cd5b38632 Use latest typst-hs. 2024-09-08 14:33:02 -07:00
John MacFarlane 9855cd98e1 Remove most uses of partial function 'head'. 2024-09-08 12:50:30 -07:00
John MacFarlane cf3a583bd4 Avoid use of partial function 'tail'. 2024-09-08 09:52:50 -07:00
John MacFarlane 477e235f6e pandoc-lua-engine: marshall list_tables, epub_title_page writer options. 2024-09-08 09:42:20 -07:00
John MacFarlane 7a569b9c8f Initialize some missing fields in pandoc-server.
writerEpubTitlePage, writerChunkTemplate, writerListTables.
2024-09-08 09:41:17 -07:00
John MacFarlane 25b9314472 Finishing touches on --link-images:
- Document in defaults file section of MANUAL.
- Add to pandoc-lua-engine writer option marshalling.
- Add to pandoc-server initialization of writer options.
2024-09-08 09:07:55 -07:00
John MacFarlane ca017b3c43 Document figure/table-caption-position in defaults files. 2024-09-08 08:57:26 -07:00
John MacFarlane 8e391ba599 Add to cli options seciton in CONTRIBUTING. 2024-09-08 08:55:49 -07:00
John MacFarlane 079af93d78 CONTRIBUTING.md: summarize steps for adding new cli option. 2024-09-08 08:52:29 -07:00
John MacFarlane 45da887ff7 Include accessors for new writer options 2024-09-08 08:52:23 -07:00
John MacFarlane 6be667625e pandoc-server: initialize caption position options 2024-09-08 08:52:10 -07:00
John MacFarlane e589dd62d7 Docx writer: Support --number-offsets. 2024-09-08 08:29:23 -07:00
John MacFarlane bdcbb67168 T.P.Opp: Change default for optNumberOffset to [].
This behaves the same as `[0,0,0,0,0]`.
2024-09-08 08:29:23 -07:00
John MacFarlane 3e6eb1cde2 Text.Pandoc.Shared: add makeSectionsWithOffsets [API change].
This is like `makeSections` but has an additional parameter
specifying number offsets, for use with the `--number-offset` option.

Use `makeSectionsWithOffsets` in HTML writer instead of ad hoc
and inefficient number-adjusting code.

Clarify MANUAL.txt: the `--number-offset` option should only
directly affect numbering of the first section heading in
a document; subsequent headings will increment normally.
Fix test output for #5071 to reflect this.
2024-09-08 08:29:23 -07:00
John MacFarlane a27dad6f68 Add options to change table/figure caption positions.
+ Add command line options `--table-caption-position` and
  `--figure-caption-position`. These allow the user to specify whether
  to put captions above or below tables and figures, respectively.
  The following output formats are supported: HTML (and related such
  as EPUB), LaTeX (and Beamer), Docx, ODT/OpenDocument, Typst.

+ Text.Pandoc.Options: add `CaptionPosition` and new
  `WriterOptions` fields `writerFigureCaptionPosition` and
  `writerTableCaptionPosition` [API change].

+ Text.Pandoc.Opt: add `Opt` fields `optFigureCaptionPosition` and
  `optTableCaptionPosition` [API change].

+ Docx writer: make table/figure rendering sensitive to caption
  position settings.

+ OpenDocument writer: make table/figure rendering sensitive to
  caption position settings.

+ Typst writer/template: implement figure caption positions by
  triggering a show rule in the default template, which determines caption
  positions for figures and tables globally.

+ LaTeX writer: make table/figure rendering sensitive to caption
  position settings. Closes #5116.

+ HTML writer/template: make `<figcaption>` placement sensitive to caption
  position settings.  For tables, `<caption>` must be the first element,
  and positioning is determined by CSS, for here we set a variable
  which the default template is sensitive to.
2024-09-08 08:29:09 -07:00