Skip to content

Commit de4dc93

Browse files
committed
🐛 Fix --shell-escape
1 parent 6033cf1 commit de4dc93

File tree

3 files changed

+6
-31
lines changed

3 files changed

+6
-31
lines changed

.pre-commit-config.yaml

+4-4
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ repos:
3737
args:
3838
- --msg-filename
3939
- repo: https://github.com/editorconfig-checker/editorconfig-checker.python
40-
rev: 3.0.3
40+
rev: 3.1.2
4141
hooks:
4242
- id: editorconfig-checker
4343
- repo: https://github.com/jumanjihouse/pre-commit-hooks
@@ -50,15 +50,15 @@ repos:
5050
exclude_types:
5151
- zsh
5252
- repo: https://github.com/rhysd/actionlint
53-
rev: v1.7.4
53+
rev: v1.7.7
5454
hooks:
5555
- id: actionlint
5656
- repo: https://github.com/adrienverge/yamllint
5757
rev: v1.35.1
5858
hooks:
5959
- id: yamllint
6060
- repo: https://github.com/executablebooks/mdformat
61-
rev: 0.7.19
61+
rev: 0.7.21
6262
hooks:
6363
- id: mdformat
6464
additional_dependencies:
@@ -72,7 +72,7 @@ repos:
7272
- mdformat-config
7373
- mdformat-web
7474
- repo: https://github.com/DavidAnson/markdownlint-cli2
75-
rev: v0.16.0
75+
rev: v0.17.2
7676
hooks:
7777
- id: markdownlint-cli2
7878
additional_dependencies:

README.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -148,12 +148,12 @@ If you want to use lua REPL in `\directlua{}`, you can insert:
148148
As [example](examples/main.tex):
149149

150150
```sh
151-
luajittex --lua=/the/path/of/prompt/tex.lua main.tex
151+
luajittex --shell-escape main.tex
152152
```
153153

154154
Then you will get:
155155

156-
![directlua](https://github.com/user-attachments/assets/45279ebe-76aa-4ff4-826e-03c00e9e79a8)
156+
![directlua](https://github.com/user-attachments/assets/6a9943c9-a273-4ca9-b603-8cee17a2218f)
157157

158158
#### [neomutt](https://neomutt.org)
159159

lua/prompt/tex.lua

-25
Original file line numberDiff line numberDiff line change
@@ -1,28 +1,3 @@
1-
-- luacheck: ignore 111 112 113
2-
---@diagnostic disable: undefined-global
3-
if not texconfig.prompt_init then
4-
-- FIXME: no format given, quitting
5-
-- kpse.set_program_name(status.list().luatex_engine)
6-
local configs = { os.getenv('HOME') .. '/.luaprc.lua',
7-
os.getenv('HOME') .. '/.config/luaprc.lua' }
8-
for _, name in ipairs(configs) do
9-
local f = io.open(name, "r")
10-
if f ~= nil then
11-
io.close(f)
12-
local chunk, message = loadfile(name)
13-
if chunk then
14-
chunk()
15-
else
16-
print(message)
17-
end
18-
break
19-
end
20-
end
21-
22-
require 'prompt'
23-
texconfig.prompt_init = true
24-
return
25-
end
261
local prompt = require 'prompt'
272
local utils = require "prompt.utils"
283

0 commit comments

Comments
 (0)