From a45df3a3df65e636a821f9781e2e87e959e0dc98 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C4=90o=C3=A0n=20Tr=E1=BA=A7n=20C=C3=B4ng=20Danh?= Date: Wed, 15 Mar 2023 20:48:46 +0700 Subject: [PATCH] Marker: fix MathJax rendering It have never worked before. --- srcpkgs/Marker/patches/system-mathjax.patch | 12 ++++++++++++ srcpkgs/Marker/template | 4 ++-- 2 files changed, 14 insertions(+), 2 deletions(-) create mode 100644 srcpkgs/Marker/patches/system-mathjax.patch diff --git a/srcpkgs/Marker/patches/system-mathjax.patch b/srcpkgs/Marker/patches/system-mathjax.patch new file mode 100644 index 00000000000..1ef9fde3693 --- /dev/null +++ b/srcpkgs/Marker/patches/system-mathjax.patch @@ -0,0 +1,12 @@ +--- a/src/marker-markdown.c ++++ b/src/marker-markdown.c +@@ -87,8 +87,7 @@ char* html_header(MarkerMathJSMode ma + } else + { + mathjs_css = g_strdup(" "); +- mathjs_script = g_strdup_printf("", +- SCRIPTS_DIR); ++ mathjs_script = g_strdup(""); + mathjs_auto = g_strdup(" "); + } + break; diff --git a/srcpkgs/Marker/template b/srcpkgs/Marker/template index c18cb26f02b..1bc21fc3937 100644 --- a/srcpkgs/Marker/template +++ b/srcpkgs/Marker/template @@ -1,12 +1,12 @@ # Template file for 'Marker' pkgname=Marker version=2020.04.04 -revision=2 +revision=3 build_style=meson hostmakedepends="glib-devel pkg-config itstool gettext" makedepends="gtksourceview-devel gtkspell3-devel gtk+3-devel libglib-devel webkit2gtk-devel" -depends="iso-codes" +depends="iso-codes mathjax2" short_desc="Gtk3 markdown editor" maintainer="Enno Boland " license="GPL-3.0-or-later, ISC"