-
Notifications
You must be signed in to change notification settings - Fork 31
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Markdown no longer works with pdfTeX #365
Comments
Thank you for using the Markdown package for TeX and for describing your problem to us. You didn't tell us the command you used to compile your document. However, line 3 in your log says "restricted \write18 enabled". This tells me that you did not enable shell access, as described in the user manual. Try typesetting your document with shell access enabled as follows and see if the error persists:
|
No, I didn’t use In any case, some of us don’t like using |
I understand. The package uses the shell to execute Lua code. A common solution to your problem is to run pdfTeX in a Docker container, see the example in the README. This way, you can grant pdfTeX shell access without exposing any data other than the document that you wish to compile.
The Markdown package uses Lua to parse markdown text. Since Lua is unavailable in pdfTeX, the only alternative to using the shell seems to be the rewrite of the markdown parser from Lua to TeX. However, this would be time-consuming and the resulting code would be more difficult to maintain as well as substantially slower. Therefore, there has not been much interest in pursuing this direction. If you know about other alternatives to using the shell in pdfTeX, please let me know.
It definitely should, thanks for bringing this to our attention. Currently, the execution of Lua code and all error handling is delegated to the lt3luabridge package, which uses the \msg_new:nnnn
{ luabridge }
{ level-disabled }
{
Shell~escape~seems~to~be~disabled
}
{
You~may~need~to~run~TeX~with~the~--shell-escape~or~the~
--enable-write18~flag,~or~write~shell_escape=t~in~the~texmf.cnf~file.
} However, from your report it seems that the function I opened a ticket for your issue in Witiko/lt3luabridge#22.
Strange! The Markdown package for TeX has required the use of
There are many LaTeX packages that require |
@sorsted: After #372, compiling your example document
This update will be released in Markdown 3.3.0, which will be included in TeX Live 2024. |
I tried compiling the following document with pdfTeX:
The result was an emergency stop and the error message displayed below. It compiles just fine with LuaTeX.
System information: I am using TeX Live 2023 (installed yesterday, October 22) on Windows 10. I got the same error message with TeX Live 2022, which was why I installed the 2023 version yesterday.
The text was updated successfully, but these errors were encountered: