sending in case anyone would like to test.
this adds markdown rendering support.
Index: Makefile
===================================================================
RCS file: /cvs/ports/textproc/mupdf/Makefile,v
diff -u -p -r1.163 Makefile
--- Makefile 21 Feb 2026 08:37:14 -0000 1.163
+++ Makefile 22 Jun 2026 13:40:03 -0000
@@ -2,9 +2,11 @@ COMMENT = graphic library, pdf parser, v
SHARED_LIBS += mupdf 15.0
-V = 1.27.2
+V = 1.28.0-rc1
DISTNAME = mupdf-$V-source
PKGNAME = mupdf-${V:S/-rc/rc/}
+
+DIST_TUPLE = github ArtifexSoftware thirdparty-cmark-gfm
74e0f5b6b62bbdd1e262c92f4bb2c6c871c6307e thirdparty/cmark-gfm
CATEGORIES = textproc x11
Index: distinfo
===================================================================
RCS file: /cvs/ports/textproc/mupdf/distinfo,v
diff -u -p -r1.80 distinfo
--- distinfo 21 Feb 2026 08:37:14 -0000 1.80
+++ distinfo 22 Jun 2026 13:40:03 -0000
@@ -1,2 +1,4 @@
-SHA256 (mupdf-1.27.2-source.tar.gz) =
VThnsTUwPcTCWrZ8XyNNjpAKDjbmboSE2ZrcBf4ehzc=
-SIZE (mupdf-1.27.2-source.tar.gz) = 66968384
+SHA256
(ArtifexSoftware-thirdparty-cmark-gfm-74e0f5b6b62bbdd1e262c92f4bb2c6c871c6307e.tar.gz)
= FyCZ4UCfALUJUyJ4ztys09IHrl6kgZvRici0OqrHQdo=
+SHA256 (mupdf-1.28.0-rc1-source.tar.gz) =
M1kImwjYEut5/Gg8DzEo+gqQE2PoZC03QAo/wcRWVVQ=
+SIZE
(ArtifexSoftware-thirdparty-cmark-gfm-74e0f5b6b62bbdd1e262c92f4bb2c6c871c6307e.tar.gz)
= 301449
+SIZE (mupdf-1.28.0-rc1-source.tar.gz) = 68714621
Index: patches/patch-Makerules
===================================================================
RCS file: /cvs/ports/textproc/mupdf/patches/patch-Makerules,v
diff -u -p -r1.33 patch-Makerules
--- patches/patch-Makerules 4 Jun 2025 12:32:03 -0000 1.33
+++ patches/patch-Makerules 22 Jun 2026 13:40:03 -0000
@@ -1,7 +1,7 @@
Index: Makerules
--- Makerules.orig
+++ Makerules
-@@ -151,7 +151,7 @@ ifeq ($(build),debug)
+@@ -155,7 +155,7 @@ ifeq ($(build),debug)
CFLAGS += -pipe -g
LDFLAGS += -g
else ifeq ($(build),release)
Index: patches/patch-docs_man_mupdf_1
===================================================================
RCS file: /cvs/ports/textproc/mupdf/patches/patch-docs_man_mupdf_1,v
diff -u -p -r1.7 patch-docs_man_mupdf_1
--- patches/patch-docs_man_mupdf_1 13 May 2025 09:24:26 -0000 1.7
+++ patches/patch-docs_man_mupdf_1 22 Jun 2026 13:40:03 -0000
@@ -3,13 +3,13 @@ espie@ added feature
Index: docs/man/mupdf.1
--- docs/man/mupdf.1.orig
+++ docs/man/mupdf.1
-@@ -119,6 +119,9 @@ Pan page left or right.
+@@ -121,6 +121,9 @@ Pan page left or right.
.TP
.B Control + Scroll wheel
Zoom in or out.
+.TP
+.B Shift + Control + Scroll wheel
+Fine grained Zoom in or out.
-
+ .
.SH KEY BINDINGS
-
+ .SS Page navigation
Index: patches/patch-platform_x11_x11_main_c
===================================================================
RCS file: /cvs/ports/textproc/mupdf/patches/patch-platform_x11_x11_main_c,v
diff -u -p -r1.14 patch-platform_x11_x11_main_c
--- patches/patch-platform_x11_x11_main_c 6 Feb 2026 11:47:31 -0000
1.14
+++ patches/patch-platform_x11_x11_main_c 22 Jun 2026 13:40:03 -0000
@@ -32,20 +32,20 @@ Index: platform/x11/x11_main.c
}
void winopenuri(pdfapp_t *app, char *buf)
-@@ -989,6 +988,16 @@ int main(int argc, char **argv)
- tmo_at.tv_sec = 0;
- tmo_at.tv_usec = 0;
- timeout = NULL;
+@@ -992,6 +991,16 @@ int main(int argc, char **argv)
+ tmo_at.tv_sec = 0;
+ tmo_at.tv_usec = 0;
+ timeout = NULL;
+
+#ifdef HAVE_CURL
-+ if (pledge("stdio rpath wpath cpath inet dns proc exec", NULL) == -1)
-+#else
-+ if (pledge("stdio rpath wpath cpath proc exec", NULL) == -1)
-+#endif
-+ {
-+ fprintf(stderr, "pledge: %s\n", strerror(errno));
-+ exit(1);
-+ }
++ if (pledge("stdio rpath wpath cpath inet dns proc exec", NULL)
== -1)
++ #else
++ if (pledge("stdio rpath wpath cpath proc exec", NULL) == -1)
++ #endif
++ {
++ fprintf(stderr, "pledge: %s\n", strerror(errno));
++ exit(1);
++ }
- if (kbps)
- pdfapp_open_progressive(&gapp, filename, 0, kbps);
+ if (kbps)
+ pdfapp_open_progressive(&gapp, filename, 0, kbps);
Index: patches/patch-source_tools_mudraw_c
===================================================================
RCS file: /cvs/ports/textproc/mupdf/patches/patch-source_tools_mudraw_c,v
diff -u -p -r1.22 patch-source_tools_mudraw_c
--- patches/patch-source_tools_mudraw_c 6 Feb 2026 11:47:31 -0000 1.22
+++ patches/patch-source_tools_mudraw_c 22 Jun 2026 13:40:03 -0000
@@ -12,7 +12,7 @@ Index: source/tools/mudraw.c
#include <string.h>
#include <limits.h>
#include <stdlib.h>
-@@ -2208,6 +2210,12 @@ int mudraw_main(int argc, char **argv)
+@@ -2290,6 +2292,12 @@ int mudraw_main(int argc, char **argv)
if (fz_optind == argc)
return usage();
Index: patches/patch-source_tools_pdfpages_c
===================================================================
RCS file: /cvs/ports/textproc/mupdf/patches/patch-source_tools_pdfpages_c,v
diff -u -p -r1.6 patch-source_tools_pdfpages_c
--- patches/patch-source_tools_pdfpages_c 22 Mar 2024 13:14:37 -0000
1.6
+++ patches/patch-source_tools_pdfpages_c 22 Jun 2026 13:40:03 -0000
@@ -13,7 +13,7 @@ Index: source/tools/pdfpages.c
#include <stdlib.h>
#include <stdio.h>
-@@ -223,6 +226,12 @@ int pdfpages_main(int argc, char **argv)
+@@ -228,6 +231,12 @@ int pdfpages_main(int argc, char **argv)
if (fz_optind == argc)
return infousage();
Index: patches/patch-source_tools_pdfposter_c
===================================================================
RCS file: /cvs/ports/textproc/mupdf/patches/patch-source_tools_pdfposter_c,v
diff -u -p -r1.11 patch-source_tools_pdfposter_c
--- patches/patch-source_tools_pdfposter_c 6 Feb 2026 11:47:31 -0000
1.11
+++ patches/patch-source_tools_pdfposter_c 22 Jun 2026 13:40:03 -0000
@@ -12,7 +12,7 @@ Index: source/tools/pdfposter.c
#include <string.h>
#include <stdlib.h>
#include <stdio.h>
-@@ -262,6 +264,12 @@ int pdfposter_main(int argc, char **argv)
+@@ -266,6 +268,12 @@ int pdfposter_main(int argc, char **argv)
(strstr(argv[fz_optind], ".pdf") || strstr(argv[fz_optind],
".PDF")))
{
outfile = fz_optpath(argv[fz_optind++]);
Index: pkg/PLIST
===================================================================
RCS file: /cvs/ports/textproc/mupdf/pkg/PLIST,v
diff -u -p -r1.36 PLIST
--- pkg/PLIST 6 Feb 2026 11:47:31 -0000 1.36
+++ pkg/PLIST 22 Jun 2026 13:40:03 -0000
@@ -37,6 +37,7 @@ include/mupdf/fitz/image.h
include/mupdf/fitz/json.h
include/mupdf/fitz/link.h
include/mupdf/fitz/log.h
+include/mupdf/fitz/options.h
include/mupdf/fitz/outline.h
include/mupdf/fitz/output-svg.h
include/mupdf/fitz/output.h