Skip to content

Commit 1fe997b

Browse files
Merge branch 'jgm:main' into typst-template
2 parents 06aeec6 + 2918ac4 commit 1fe997b

File tree

92 files changed

+2060
-1533
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

92 files changed

+2060
-1533
lines changed

AUTHORS.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -246,6 +246,7 @@
246246
- Lucas V. R
247247
- Luis Rivera
248248
- Luke Plant
249+
- Manolis Stamatogiannakis
249250
- Marc Schreiber
250251
- Marcin Serwin
251252
- Mario Lang
@@ -287,6 +288,7 @@
287288
- Mikołaj Machowski
288289
- Milan Bracke
289290
- MinRK
291+
- Mohamed Akram
290292
- Morgan Willcock
291293
- Morton Fox
292294
- Nathan Gass
@@ -296,6 +298,7 @@
296298
- Nick Berendsen
297299
- Nick Fleisher
298300
- Nicolas Kaiser
301+
- Niklas Eicker
299302
- Nikolai Korobeinikov
300303
- Nikolay Yakimov
301304
- Nils Carlson

CONTRIBUTING.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ to `odt`. (You can, however, customize margin size using `--reference-doc`.)
118118
So before submitting a bug report, consider whether it might be
119119
"out of scope." If it concerns a feature of documents that isn't
120120
representable in pandoc's Markdown, then it very likely is.
121-
(If in doubt, you can always ask on the [discussion-forum].)
121+
(If in doubt, you can always ask on the [discussion forum].)
122122

123123
Fixing bugs from the issue tracker
124124
----------------------------------

MANUAL.txt

Lines changed: 22 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
title: Pandoc User's Guide
33
author: John MacFarlane
4-
date: March 16, 2025
4+
date: 2025-05-14
55
---
66

77
# Synopsis
@@ -774,13 +774,31 @@ header when requesting a document from a URL:
774774
not used, a default template appropriate for the output
775775
format will be used (see `-D/--print-default-template`).
776776

777-
`-V` *KEY*[`=`*VAL*], `--variable=`*KEY*[`:`*VAL*]
777+
`-V` *KEY*[`=`*VAL*], `--variable=`*KEY*[`=`*VAL*]
778778

779779
: Set the template variable *KEY* to the string value *VAL* when rendering
780-
the document in standalone mode. If no *VAL* is specified, the
780+
the document in standalone mode. Either `:` or `=` may be used
781+
to separate *KEY* from *VAL*. If no *VAL* is specified, the
781782
key will be given the value `true`. Structured values (lists, maps)
782783
cannot be assigned using this option, but they can be assigned in
783-
the `variables` section of a [defaults file][Defaults files].
784+
the `variables` section of a [defaults file][Defaults files] or
785+
using the `--variable-json` option. If the variable already has
786+
a *list* value, the value will be added to the list. If it already
787+
has another kind of value, it will be made into a list containing
788+
the previous and the new value. For example,
789+
`-V keyword=Joe -V author=Sue` makes `author` contain a list
790+
of strings: `Joe` and `Sue`.
791+
792+
`--variable-json=`*KEY*[`=`:*JSON*]
793+
794+
: Set the template variable *KEY* to the value specified by a JSON
795+
string (this may be a boolean, a string, a list, or a mapping;
796+
a number will be treated as a string). For example,
797+
`--variable-json foo=false` will give `foo` the boolean false
798+
value, while `--variable-json foo='"false"'` will give it the
799+
string value `"false"`. Either `:` or `=` may be used to
800+
separate *KEY* from *VAL*. If the variable already has a
801+
value, this value will be replaced.
784802

785803
`--sandbox[=true|false]`
786804

Makefile

Lines changed: 11 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ authors: ## prints unique authors since last released version
7777
git log --pretty=format:"%an" $$(git tag -l | grep '[^0-9]' | sort | tail -1)..HEAD | sort | uniq | while read -r; do grep -i -q "^- $$REPLY" AUTHORS.md || echo $$REPLY ; done
7878

7979
check-stack:
80-
stack-lint-extra-deps # check that stack.yaml dependencies are up to date
80+
$$HOME/.local/bin/stack-lint-extra-deps # check that stack.yaml dependencies are up to date
8181
! grep 'git:' stack.yaml # use only released versions
8282
.PHONY: check-stack
8383

@@ -104,7 +104,7 @@ check-version-sync:
104104

105105
check-changelog:
106106
@echo "Checking for changelog entry for this version"
107-
grep '## pandoc $(VERSION) (\d\d\d\d-\d\d-\d\d)' changelog.md
107+
rg '## pandoc $(VERSION) \(\d\d\d\d-\d\d-\d\d\)' changelog.md
108108
.PHONY: check-changelog
109109

110110
check-manversion:
@@ -116,7 +116,7 @@ check-manversion:
116116

117117
checkdocs:
118118
@echo "Checking for tabs in manual."
119-
! grep -q -n -e "\t" \
119+
! rg -n -e '\t' \
120120
MANUAL.txt changelog.md doc/pandoc-server.md doc/pandoc-lua.md
121121
.PHONY: checkdocs
122122

@@ -144,7 +144,7 @@ man: pandoc-cli/man/pandoc.1 pandoc-cli/man/pandoc-server.1 pandoc-cli/man/pando
144144
.PHONY: man
145145

146146
latex-package-dependencies: ## print packages used by default latex template
147-
$(pandoc) lua tools=latex-package-dependencies.lua
147+
$(pandoc) lua tools/latex-package-dependencies.lua
148148
.PHONY: latex-package-dependencies
149149

150150
coverage: ## code coverage information
@@ -251,24 +251,26 @@ validate-docx-golden-tests: ## validate docx golden tests against schema
251251

252252
validate-docx-golden-tests2: ## validate docx golden tests using OOXMLValidator
253253
which dotnet || ("dotnet is required" && exit 1)
254-
which json_reformat || ("json_reformat is required" && exit 1)
254+
which jq || ("jq is required" && exit 1)
255255
test -d ./OOXML-Validator || \
256256
(git clone https://github.com/mikeebowen/OOXML-Validator.git \
257257
&& cd OOXML-Validator && dotnet build --configuration=Release)
258258
sh ./tools/validate-docx2.sh test/docx/golden/
259259
.PHONY: validate-docx-golden-tests2
260260

261-
validate-epub: ## generate an epub and validate it with epubcheck and ace
261+
node_modules/.bin/ace:
262+
npm install @daisy/ace
263+
264+
validate-epub: node_modules/.bin/ace ## generate an epub and validate it with epubcheck and ace
262265
which epubcheck || exit 1
263-
which ace || exit 1
264266
tmp=$$(mktemp -d) && \
265267
for epubver in 2 3; do \
266268
file=$$tmp/ver$$epubver.epub ; \
267269
$(pandoc) test/epub/wasteland.epub --epub-cover=test/lalune.jpg -Mtitle="The Wasteland" --resource-path test/epub -t epub$$epubver -o $$file --number-sections --toc --quiet && \
268270
echo $$file && \
269271
epubcheck $$file || exit 1 ; \
270272
done && \
271-
ace $$tmp/ver3.epub -o ace-report-v2 --force
273+
./node_modules/.bin/ace $$tmp/ver3.epub -o ace-report-v2 --force
272274

273275
modules.csv: $(PANDOCSOURCEFILES)
274276
@rg '^import.*Text\.Pandoc\.' --with-filename $^ \
@@ -294,7 +296,7 @@ modules.pdf: modules.dot
294296
# make moduledeps ROOT=Text.Pandoc.Parsing
295297
moduledeps: modules.csv ## Print transitive dependencies of a module ROOT
296298
@echo "$(ROOT)"
297-
@lua tools/moduledeps.lua transitive $(ROOT) | sort
299+
@$(pandoc) lua tools/moduledeps.lua transitive $(ROOT) | sort
298300
.PHONY: moduledeps
299301

300302
clean: ## clean up

RELEASE-CHECKLIST-TEMPLATE.org

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ make man
2626
git log $(git describe --tags --abbrev=0)..HEAD --mailmap --reverse --format=format:' * %s%n %aN%n%w(78,4,4)%b' | sed -e '/^ *John MacFarlane$/d' | sed -e 's/ *$//'
2727
#+end_src
2828
*** TODO prerelease checks
29-
#+begin_src sh
29+
#+begin_src sh :results output verbatim
3030
make prerelease
3131
#+end_src
3232
*** TODO Update [[./AUTHORS.md]]
@@ -84,7 +84,14 @@ git push
8484
git push --tags
8585
popd
8686
#+end_src
87-
*** TODO Copy deb to server, install it
87+
*** TODO Copy binary to server, install it
88+
#+begin_src
89+
# example:
90+
cd 3.7
91+
tar xvzf pandoc-3.7-linux-amd64.tar.gz
92+
scp pandoc-3.7/bin/pandoc website:cgi-bin/pandoc-server.cgi
93+
#+end_src
94+
8895
*** TODO create release announcement and add to GH release announcement
8996
#+NAME: relann
9097
#+begin_src elisp :results value file :file relann-RELEASE_VERSION

cabal.project

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,3 @@ constraints: skylighting-format-blaze-html >= 0.1.1.3,
88
skylighting-format-context >= 0.1.0.2,
99
-- for now (commercialhaskell/stackage#7545):
1010
data-default-class <= 0.2, data-default <= 0.8
11-
12-
source-repository-package
13-
type: git
14-
location: https://github.com/jgm/citeproc.git
15-
tag: cf5542df8f21085bbfd794eaa5cc40abc605637b

0 commit comments

Comments
 (0)