Marker: fix MathJax rendering

It have never worked before.
This commit is contained in:
Đoàn Trần Công Danh 2023-03-15 20:48:46 +07:00
parent 51e5d3dcf3
commit a45df3a3df
2 changed files with 14 additions and 2 deletions

View File

@ -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("<script src=\"file://%smathjax/MathJax.js?config=TeX-AMS_HTML\"></script>",
- SCRIPTS_DIR);
+ mathjs_script = g_strdup("<script src=\"file:///usr/share/mathjax/MathJax.js?config=TeX-AMS_HTML\"></script>");
mathjs_auto = g_strdup(" ");
}
break;

View File

@ -1,12 +1,12 @@
# Template file for 'Marker' # Template file for 'Marker'
pkgname=Marker pkgname=Marker
version=2020.04.04 version=2020.04.04
revision=2 revision=3
build_style=meson build_style=meson
hostmakedepends="glib-devel pkg-config itstool gettext" hostmakedepends="glib-devel pkg-config itstool gettext"
makedepends="gtksourceview-devel gtkspell3-devel gtk+3-devel libglib-devel makedepends="gtksourceview-devel gtkspell3-devel gtk+3-devel libglib-devel
webkit2gtk-devel" webkit2gtk-devel"
depends="iso-codes" depends="iso-codes mathjax2"
short_desc="Gtk3 markdown editor" short_desc="Gtk3 markdown editor"
maintainer="Enno Boland <gottox@voidlinux.org>" maintainer="Enno Boland <gottox@voidlinux.org>"
license="GPL-3.0-or-later, ISC" license="GPL-3.0-or-later, ISC"