Open dschrempf opened 1 day ago
As you can see from the backtrace, ox-hugo delegates this job eventually to org-html-format-latex
. The source of that code is in the ox-html.el
(part of your Org library). I believe you might see the same issue if you export using the HTML backend?
Have you recently updated Org or Emacs which could have led to this issue?
Good point! However, exporting to HTML does work...
I did a quick test and am unable to reproduce the issue. I just modified one of the existing test posts with some LaTeX fragments already. (right is Org source, left is the exported Markdown; margin shows the git diff) (argh, made a typo in "Hello" 😆 )
Emacs version
Emacs version: GNU Emacs 30.0.60 (build 1, x86_64-pc-linux-gnu, GTK+ Version 3.22.30, cairo version 1.15.12)
of 2024-10-31, built using commit 8e3e206bd32c2fc4dc07ab2c6271fd0d0e8dddd9.
./configure options:
--prefix=/home/kmodi/usr_local/apps/7/emacs/emacs-30 '--program-transform-name=s/^ctags$/ctags_emacs/' --with-modules --with-harfbuzz --with-native-compilation --enable-checking=yes,glyphs --enable-check-lisp-object-type CPPFLAGS=-I/home/kmodi/stowed/7/include 'CFLAGS=-ggdb3 -Og' 'CXXFLAGS=-ggdb3 -Og' 'LDFLAGS=-L/home/kmodi/stowed/7/lib -L/home/kmodi/stowed/7/lib64 -ggdb3' PKG_CONFIG_PATH=/cad/adi/apps/gnu/linux/x86_64/7/local/poppler/0.36.0/lib/pkgconfig:/usr/lib64/pkgconfig:/usr/share/pkgconfig:/cad/adi/apps/gnu/linux/x86_64/7/lib/pkgconfig:/home/kmodi/stowed/7/lib/pkgconfig:/home/kmodi/stowed/7/lib64/pkgconfig
Features:
ACL CAIRO DBUS FREETYPE GIF GLIB GMP GNUTLS GPM GSETTINGS HARFBUZZ JPEG LIBOTF LIBSELINUX LIBXML2 MODULES NATIVE_COMP NOTIFY INOTIFY PDUMPER PNG RSVG SECCOMP SOUND SQLITE3 THREADS TIFF TOOLKIT_SCROLL_BARS X11 XDBE XIM XINPUT2 XPM GTK3 ZLIB
Org version
Org mode version 9.8-pre (release_9.7.14-156-g1c9873 @ /home/kmodi/usr_local/apps/7/emacs/emacs-30/share/emacs/site-lisp/org/)
Wow, interesting. I just installed Emacs 30, and it works! Weird stuff.
This build has the problem: GNU Emacs 29.4 (build 1, x86_64-pc-linux-gnu, X toolkit, cairo version 1.18.2, Xaw3d scroll bars)
This build works: GNU Emacs 30.0.92 (build 1, x86_64-pc-linux-gnu, X toolkit, cairo version 1.18.2, Xaw3d scroll bars)
Both builds use ox-hugo-20240305.1923
Actual Behavior
Export fails with
Debugger entered--Lisp error: (wrong-type-argument char-or-string-p [org-element-deferred org-element--substring (0 9) t])
Expected Behavior
Export succeeds.
How to Reproduce the Issue
Example Org File
Generated Markdown File or Error
Ox-Hugo Debug Information
Debug Info
# Debug information for `ox-hugo` ## Emacs Version GNU Emacs 29.4 (build 1, x86_64-pc-linux-gnu, X toolkit, cairo version 1.18.2, Xaw3d scroll bars) ## Org Version Org mode version 9.7.16 (9.7.16-ba9734 @ /nix/store/hwgyjr16w9q8zf9qpyg2ynciblyhi9dm-emacs-packages-deps/share/emacs/site-lisp/elpa/org-9.7.16/) ## Hugo Version =hugo= binary not found in PATH ### Org `load-path` shadows **Warning**: Possible mixed installation of Org I had to remove this section because the comment was too long for GitHub. Study the output of `M-x list-load-path-shadows`. ## `ox-hugo` defcustoms