Package Details: zathura-markdown-git 2026.05.10.r1.8546c28-1

Git Clone URL: https://aur.archlinux.org/zathura-markdown-git.git (read-only, click to copy)
Package Base: zathura-markdown-git
Description: Markdown support for Zathura (cmark + MuPDF backend)
Upstream URL: https://github.com/demetrio108/zathura-markdown
Licenses: zlib
Conflicts: zathura-markdown
Provides: zathura-markdown
Submitter: demetrio108
Maintainer: demetrio108
Last Packager: demetrio108
Votes: 0
Popularity: 0.000000
First Submitted: 2026-07-15 07:18 (UTC)
Last Updated: 2026-07-15 07:18 (UTC)

Latest Comments

flexid2000 commented on 2026-08-21 10:56 (UTC)

Build fails with current zathura (plugin API change in plugin-api.h)

With an up-to-date zathura package, the build fails with:

../zathura-markdown/zathura-markdown/plugin.c:28:42: error: macro "ZATHURA_PLUGIN_REGISTER_WITH_FUNCTIONS" passed 6 arguments, but takes just 4

Cause: upstream zathura changed ZATHURA_PLUGIN_REGISTER_WITH_FUNCTIONS in plugin-api.h from (name, major, minor, rev, functions, mimetypes) to (name, version, functions, mimetypes) — version is now a single const char* instead of three separate ints. plugin.c hasn't been updated to match.

Workaround until this is fixed upstream: before building, replace this line in plugin.c:

ZATHURA_PLUGIN_REGISTER_WITH_FUNCTIONS("markdown", 2026, 5, 10,

with (reusing the VERSION macro the build already defines via -DVERSION=...):

ZATHURA_PLUGIN_REGISTER_WITH_FUNCTIONS("markdown", VERSION,

One-liner:

sed -i -E 's/("markdown", )[0-9]+, [0-9]+, [0-9]+,/\1VERSION,/' src/zathura-markdown/zathura-markdown/plugin.c

(run find src -name plugin.c first if your path differs). Note that -git packages re-extract sources on every makepkg run, so you need makepkg -o to extract, patch, then makepkg -si --noextract to keep the patch. After that it builds fine. Would be great if this could be fixed in the source repo directly so this workaround isn't needed.

kochan commented on 2026-07-28 13:33 (UTC)

Building fails:

../zathura-markdown/zathura-markdown/plugin.c:28:42: error: macro ‘ZATHURA_PLUGIN_REGISTER_WITH_FUNCTIONS’ passed 6 arguments, but takes just 4
   28 |                                        }))
      |                                          ^
In file included from ../zathura-markdown/zathura-markdown/plugin.h:9,
                 from ../zathura-markdown/zathura-markdown/plugin.c:3:
/usr/include/zathura/plugin-api.h:240:9: note: macro ‘ZATHURA_PLUGIN_REGISTER_WITH_FUNCTIONS’ defined here
  240 | #define ZATHURA_PLUGIN_REGISTER_WITH_FUNCTIONS(plugin_name, plugin_version, plugin_functions, mimetypes)               \
      |         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../zathura-markdown/zathura-markdown/plugin.c:5:1: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ at end of input
    5 | ZATHURA_PLUGIN_REGISTER_WITH_FUNCTIONS("markdown", 2026, 5, 10,
      | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
[9/10] Compiling C object libmarkdown.so.p/zathura-markdown_links.c.o
ninja: build stopped: subcommand failed.
==> ERROR: A failure occurred in build().
    Aborting...
 -> error making: zathura-markdown-git-exit status 4
 -> Failed to install the following packages. Manual intervention is required:
zathura-markdown-git - exit status 4