svelte-preprocess-org 0.2.2 → 0.2.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +1 -1
- package/dist/lisp/ox-svelte/index.d.ts +2 -2
- package/dist/lisp/ox-svelte/pnpm-lock.yaml +50 -112
- package/package.json +1 -1
- package/src/emacs.ts +3 -3
package/dist/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{execSync as n}from"node:child_process";import{join as r}from"node:path";class e{name;constructor(n){this.name=n}}class t{sexp;constructor(n){this.sexp=n}}function o(n){return n instanceof Object&&"car"in n&&"cdr"in n}function c(n){return null===n}function i(n,r){return{car:n,cdr:r}}function a(...n){if(0===n.length)return null;const[r,...e]=n;return i(r,a(...e))}function s(n){if(o(n))return`(${u(n)})`;if(c(n))return"nil";if("string"==typeof n)return`"${n}"`;if(function(n){return"number"==typeof n}(n))return n.toString();if(function(n){return"boolean"==typeof n}(n))return n?"t":"nil";if(n instanceof e)return n.name;if(n instanceof t)return`'${s(n.sexp)}`;throw new TypeError("Unknown type of S-expression: "+typeof n)}function u(n){let r="";if(o(n.car)?r+=`(${u(n.car)})`:r+=s(n.car),o(n.cdr))r+=` ${u(n.cdr)}`;else{if(c(n.cdr))return r;r+=` . ${s(n.cdr)}`}return r}function f(o){const{extensions:c=[".org"],...u}=o||{};return{markup({content:o,filename:f}){if(f&&!c.some((n=>f.endsWith(n))))return{code:o};const l=function(o,c){const{latexEnvironmentFormat:u,latexFragmentFormat:f,srcBlockFormat:l,imports:m}=c||{};let p=`/usr/bin/env emacs --script ${r(import.meta.dirname,"lisp","convert.el")}`;u&&(p+=` --latex-environment-format '${u.replaceAll("'","'\\''")}'`),f&&(p+=` --latex-fragment-format ${f.replaceAll("'","'\\''")}`),l&&(p+=` --src-block-format ${l.replaceAll("'","'\\''")}`),m&&(p+=` --preface '${s(a(new e("setq"),new e("org-svelte-component-import-alist"),new t(a(...Object.entries(m).map((([n,r])=>i(n,r))))))).replaceAll("'","'\\''")}'`);return n(p,{input:o}).toString()}(o,u);return{code:l}}}}export{f as default,f as orgPreprocess};
|
|
1
|
+
import{execSync as n}from"node:child_process";import{join as r}from"node:path";class e{name;constructor(n){this.name=n}}class t{sexp;constructor(n){this.sexp=n}}function o(n){return n instanceof Object&&"car"in n&&"cdr"in n}function c(n){return null===n}function i(n,r){return{car:n,cdr:r}}function a(...n){if(0===n.length)return null;const[r,...e]=n;return i(r,a(...e))}function s(n){if(o(n))return`(${u(n)})`;if(c(n))return"nil";if("string"==typeof n)return`"${n}"`;if(function(n){return"number"==typeof n}(n))return n.toString();if(function(n){return"boolean"==typeof n}(n))return n?"t":"nil";if(n instanceof e)return n.name;if(n instanceof t)return`'${s(n.sexp)}`;throw new TypeError("Unknown type of S-expression: "+typeof n)}function u(n){let r="";if(o(n.car)?r+=`(${u(n.car)})`:r+=s(n.car),o(n.cdr))r+=` ${u(n.cdr)}`;else{if(c(n.cdr))return r;r+=` . ${s(n.cdr)}`}return r}function f(o){const{extensions:c=[".org"],...u}=o||{};return{markup({content:o,filename:f}){if(f&&!c.some((n=>f.endsWith(n))))return{code:o};const l=function(o,c){const{latexEnvironmentFormat:u,latexFragmentFormat:f,srcBlockFormat:l,imports:m}=c||{};let p=`/usr/bin/env emacs --script ${r(import.meta.dirname,"lisp","convert.el")}`;u&&(p+=` --latex-environment-format '${u.replaceAll("'","'\\''")}'`),f&&(p+=` --latex-fragment-format '${f.replaceAll("'","'\\''")}'`),l&&(p+=` --src-block-format '${l.replaceAll("'","'\\''")}'`),m&&(p+=` --preface '${s(a(new e("setq"),new e("org-svelte-component-import-alist"),new t(a(...Object.entries(m).map((([n,r])=>i(n,r))))))).replaceAll("'","'\\''")}'`);return n(p,{input:o}).toString()}(o,u);return{code:l}}}}export{f as default,f as orgPreprocess};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
lockfileVersion:
|
|
1
|
+
lockfileVersion: '6.0'
|
|
2
2
|
|
|
3
3
|
settings:
|
|
4
4
|
autoInstallPeers: true
|
|
@@ -10,200 +10,138 @@ devDependencies:
|
|
|
10
10
|
version: 4.2.12
|
|
11
11
|
|
|
12
12
|
packages:
|
|
13
|
+
|
|
13
14
|
/@ampproject/remapping@2.2.1:
|
|
14
|
-
resolution:
|
|
15
|
-
|
|
16
|
-
integrity: sha512-lFMjJTrFL3j7L9yBxwYfCq2k6qqwHyzuUl/XBnif78PWTJYyL/dfowQHWE3sp6U6ZzqWiiIZnpTMO96zhkjwtg==,
|
|
17
|
-
}
|
|
18
|
-
engines: { node: ">=6.0.0" }
|
|
15
|
+
resolution: {integrity: sha512-lFMjJTrFL3j7L9yBxwYfCq2k6qqwHyzuUl/XBnif78PWTJYyL/dfowQHWE3sp6U6ZzqWiiIZnpTMO96zhkjwtg==}
|
|
16
|
+
engines: {node: '>=6.0.0'}
|
|
19
17
|
dependencies:
|
|
20
|
-
|
|
21
|
-
|
|
18
|
+
'@jridgewell/gen-mapping': 0.3.4
|
|
19
|
+
'@jridgewell/trace-mapping': 0.3.23
|
|
22
20
|
dev: true
|
|
23
21
|
|
|
24
22
|
/@jridgewell/gen-mapping@0.3.4:
|
|
25
|
-
resolution:
|
|
26
|
-
|
|
27
|
-
integrity: sha512-Oud2QPM5dHviZNn4y/WhhYKSXksv+1xLEIsNrAbGcFzUN3ubqWRFT5gwPchNc5NuzILOU4tPBDTZ4VwhL8Y7cw==,
|
|
28
|
-
}
|
|
29
|
-
engines: { node: ">=6.0.0" }
|
|
23
|
+
resolution: {integrity: sha512-Oud2QPM5dHviZNn4y/WhhYKSXksv+1xLEIsNrAbGcFzUN3ubqWRFT5gwPchNc5NuzILOU4tPBDTZ4VwhL8Y7cw==}
|
|
24
|
+
engines: {node: '>=6.0.0'}
|
|
30
25
|
dependencies:
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
26
|
+
'@jridgewell/set-array': 1.1.2
|
|
27
|
+
'@jridgewell/sourcemap-codec': 1.4.15
|
|
28
|
+
'@jridgewell/trace-mapping': 0.3.23
|
|
34
29
|
dev: true
|
|
35
30
|
|
|
36
31
|
/@jridgewell/resolve-uri@3.1.2:
|
|
37
|
-
resolution:
|
|
38
|
-
|
|
39
|
-
integrity: sha512-bRISgCIjP20/tbWSPWMEi54QVPRZExkuD9lJL+UIxUKtwVJA8wW1Trb1jMs1RFXo1CBTNZ/5hpC9QvmKWdopKw==,
|
|
40
|
-
}
|
|
41
|
-
engines: { node: ">=6.0.0" }
|
|
32
|
+
resolution: {integrity: sha512-bRISgCIjP20/tbWSPWMEi54QVPRZExkuD9lJL+UIxUKtwVJA8wW1Trb1jMs1RFXo1CBTNZ/5hpC9QvmKWdopKw==}
|
|
33
|
+
engines: {node: '>=6.0.0'}
|
|
42
34
|
dev: true
|
|
43
35
|
|
|
44
36
|
/@jridgewell/set-array@1.1.2:
|
|
45
|
-
resolution:
|
|
46
|
-
|
|
47
|
-
integrity: sha512-xnkseuNADM0gt2bs+BvhO0p78Mk762YnZdsuzFV018NoG1Sj1SCQvpSqa7XUaTam5vAGasABV9qXASMKnFMwMw==,
|
|
48
|
-
}
|
|
49
|
-
engines: { node: ">=6.0.0" }
|
|
37
|
+
resolution: {integrity: sha512-xnkseuNADM0gt2bs+BvhO0p78Mk762YnZdsuzFV018NoG1Sj1SCQvpSqa7XUaTam5vAGasABV9qXASMKnFMwMw==}
|
|
38
|
+
engines: {node: '>=6.0.0'}
|
|
50
39
|
dev: true
|
|
51
40
|
|
|
52
41
|
/@jridgewell/sourcemap-codec@1.4.15:
|
|
53
|
-
resolution:
|
|
54
|
-
{
|
|
55
|
-
integrity: sha512-eF2rxCRulEKXHTRiDrDy6erMYWqNw4LPdQ8UQA4huuxaQsVeRPFl2oM8oDGxMFhJUWZf9McpLtJasDDZb/Bpeg==,
|
|
56
|
-
}
|
|
42
|
+
resolution: {integrity: sha512-eF2rxCRulEKXHTRiDrDy6erMYWqNw4LPdQ8UQA4huuxaQsVeRPFl2oM8oDGxMFhJUWZf9McpLtJasDDZb/Bpeg==}
|
|
57
43
|
dev: true
|
|
58
44
|
|
|
59
45
|
/@jridgewell/trace-mapping@0.3.23:
|
|
60
|
-
resolution:
|
|
61
|
-
{
|
|
62
|
-
integrity: sha512-9/4foRoUKp8s96tSkh8DlAAc5A0Ty8vLXld+l9gjKKY6ckwI8G15f0hskGmuLZu78ZlGa1vtsfOa+lnB4vG6Jg==,
|
|
63
|
-
}
|
|
46
|
+
resolution: {integrity: sha512-9/4foRoUKp8s96tSkh8DlAAc5A0Ty8vLXld+l9gjKKY6ckwI8G15f0hskGmuLZu78ZlGa1vtsfOa+lnB4vG6Jg==}
|
|
64
47
|
dependencies:
|
|
65
|
-
|
|
66
|
-
|
|
48
|
+
'@jridgewell/resolve-uri': 3.1.2
|
|
49
|
+
'@jridgewell/sourcemap-codec': 1.4.15
|
|
67
50
|
dev: true
|
|
68
51
|
|
|
69
52
|
/@types/estree@1.0.5:
|
|
70
|
-
resolution:
|
|
71
|
-
{
|
|
72
|
-
integrity: sha512-/kYRxGDLWzHOB7q+wtSUQlFrtcdUccpfy+X+9iMBpHK8QLLhx2wIPYuS5DYtR9Wa/YlZAbIovy7qVdB1Aq6Lyw==,
|
|
73
|
-
}
|
|
53
|
+
resolution: {integrity: sha512-/kYRxGDLWzHOB7q+wtSUQlFrtcdUccpfy+X+9iMBpHK8QLLhx2wIPYuS5DYtR9Wa/YlZAbIovy7qVdB1Aq6Lyw==}
|
|
74
54
|
dev: true
|
|
75
55
|
|
|
76
56
|
/acorn@8.11.3:
|
|
77
|
-
resolution:
|
|
78
|
-
|
|
79
|
-
integrity: sha512-Y9rRfJG5jcKOE0CLisYbojUjIrIEE7AGMzA/Sm4BslANhbS+cDMpgBdcPT91oJ7OuJ9hYJBx59RjbhxVnrF8Xg==,
|
|
80
|
-
}
|
|
81
|
-
engines: { node: ">=0.4.0" }
|
|
57
|
+
resolution: {integrity: sha512-Y9rRfJG5jcKOE0CLisYbojUjIrIEE7AGMzA/Sm4BslANhbS+cDMpgBdcPT91oJ7OuJ9hYJBx59RjbhxVnrF8Xg==}
|
|
58
|
+
engines: {node: '>=0.4.0'}
|
|
82
59
|
hasBin: true
|
|
83
60
|
dev: true
|
|
84
61
|
|
|
85
62
|
/aria-query@5.3.0:
|
|
86
|
-
resolution:
|
|
87
|
-
{
|
|
88
|
-
integrity: sha512-b0P0sZPKtyu8HkeRAfCq0IfURZK+SuwMjY1UXGBU27wpAiTwQAIlq56IbIO+ytk/JjS1fMR14ee5WBBfKi5J6A==,
|
|
89
|
-
}
|
|
63
|
+
resolution: {integrity: sha512-b0P0sZPKtyu8HkeRAfCq0IfURZK+SuwMjY1UXGBU27wpAiTwQAIlq56IbIO+ytk/JjS1fMR14ee5WBBfKi5J6A==}
|
|
90
64
|
dependencies:
|
|
91
65
|
dequal: 2.0.3
|
|
92
66
|
dev: true
|
|
93
67
|
|
|
94
68
|
/axobject-query@4.0.0:
|
|
95
|
-
resolution:
|
|
96
|
-
{
|
|
97
|
-
integrity: sha512-+60uv1hiVFhHZeO+Lz0RYzsVHy5Wr1ayX0mwda9KPDVLNJgZ1T9Ny7VmFbLDzxsH0D87I86vgj3gFrjTJUYznw==,
|
|
98
|
-
}
|
|
69
|
+
resolution: {integrity: sha512-+60uv1hiVFhHZeO+Lz0RYzsVHy5Wr1ayX0mwda9KPDVLNJgZ1T9Ny7VmFbLDzxsH0D87I86vgj3gFrjTJUYznw==}
|
|
99
70
|
dependencies:
|
|
100
71
|
dequal: 2.0.3
|
|
101
72
|
dev: true
|
|
102
73
|
|
|
103
74
|
/code-red@1.0.4:
|
|
104
|
-
resolution:
|
|
105
|
-
{
|
|
106
|
-
integrity: sha512-7qJWqItLA8/VPVlKJlFXU+NBlo/qyfs39aJcuMT/2ere32ZqvF5OSxgdM5xOfJJ7O429gg2HM47y8v9P+9wrNw==,
|
|
107
|
-
}
|
|
75
|
+
resolution: {integrity: sha512-7qJWqItLA8/VPVlKJlFXU+NBlo/qyfs39aJcuMT/2ere32ZqvF5OSxgdM5xOfJJ7O429gg2HM47y8v9P+9wrNw==}
|
|
108
76
|
dependencies:
|
|
109
|
-
|
|
110
|
-
|
|
77
|
+
'@jridgewell/sourcemap-codec': 1.4.15
|
|
78
|
+
'@types/estree': 1.0.5
|
|
111
79
|
acorn: 8.11.3
|
|
112
80
|
estree-walker: 3.0.3
|
|
113
81
|
periscopic: 3.1.0
|
|
114
82
|
dev: true
|
|
115
83
|
|
|
116
84
|
/css-tree@2.3.1:
|
|
117
|
-
resolution:
|
|
118
|
-
|
|
119
|
-
integrity: sha512-6Fv1DV/TYw//QF5IzQdqsNDjx/wc8TrMBZsqjL9eW01tWb7R7k/mq+/VXfJCl7SoD5emsJop9cOByJZfs8hYIw==,
|
|
120
|
-
}
|
|
121
|
-
engines: { node: ^10 || ^12.20.0 || ^14.13.0 || >=15.0.0 }
|
|
85
|
+
resolution: {integrity: sha512-6Fv1DV/TYw//QF5IzQdqsNDjx/wc8TrMBZsqjL9eW01tWb7R7k/mq+/VXfJCl7SoD5emsJop9cOByJZfs8hYIw==}
|
|
86
|
+
engines: {node: ^10 || ^12.20.0 || ^14.13.0 || >=15.0.0}
|
|
122
87
|
dependencies:
|
|
123
88
|
mdn-data: 2.0.30
|
|
124
89
|
source-map-js: 1.0.2
|
|
125
90
|
dev: true
|
|
126
91
|
|
|
127
92
|
/dequal@2.0.3:
|
|
128
|
-
resolution:
|
|
129
|
-
|
|
130
|
-
integrity: sha512-0je+qPKHEMohvfRTCEo3CrPG6cAzAYgmzKyxRiYSSDkS6eGJdyVJm7WaYA5ECaAD9wLB2T4EEeymA5aFVcYXCA==,
|
|
131
|
-
}
|
|
132
|
-
engines: { node: ">=6" }
|
|
93
|
+
resolution: {integrity: sha512-0je+qPKHEMohvfRTCEo3CrPG6cAzAYgmzKyxRiYSSDkS6eGJdyVJm7WaYA5ECaAD9wLB2T4EEeymA5aFVcYXCA==}
|
|
94
|
+
engines: {node: '>=6'}
|
|
133
95
|
dev: true
|
|
134
96
|
|
|
135
97
|
/estree-walker@3.0.3:
|
|
136
|
-
resolution:
|
|
137
|
-
{
|
|
138
|
-
integrity: sha512-7RUKfXgSMMkzt6ZuXmqapOurLGPPfgj6l9uRZ7lRGolvk0y2yocc35LdcxKC5PQZdn2DMqioAQ2NoWcrTKmm6g==,
|
|
139
|
-
}
|
|
98
|
+
resolution: {integrity: sha512-7RUKfXgSMMkzt6ZuXmqapOurLGPPfgj6l9uRZ7lRGolvk0y2yocc35LdcxKC5PQZdn2DMqioAQ2NoWcrTKmm6g==}
|
|
140
99
|
dependencies:
|
|
141
|
-
|
|
100
|
+
'@types/estree': 1.0.5
|
|
142
101
|
dev: true
|
|
143
102
|
|
|
144
103
|
/is-reference@3.0.2:
|
|
145
|
-
resolution:
|
|
146
|
-
{
|
|
147
|
-
integrity: sha512-v3rht/LgVcsdZa3O2Nqs+NMowLOxeOm7Ay9+/ARQ2F+qEoANRcqrjAZKGN0v8ymUetZGgkp26LTnGT7H0Qo9Pg==,
|
|
148
|
-
}
|
|
104
|
+
resolution: {integrity: sha512-v3rht/LgVcsdZa3O2Nqs+NMowLOxeOm7Ay9+/ARQ2F+qEoANRcqrjAZKGN0v8ymUetZGgkp26LTnGT7H0Qo9Pg==}
|
|
149
105
|
dependencies:
|
|
150
|
-
|
|
106
|
+
'@types/estree': 1.0.5
|
|
151
107
|
dev: true
|
|
152
108
|
|
|
153
109
|
/locate-character@3.0.0:
|
|
154
|
-
resolution:
|
|
155
|
-
{
|
|
156
|
-
integrity: sha512-SW13ws7BjaeJ6p7Q6CO2nchbYEc3X3J6WrmTTDto7yMPqVSZTUyY5Tjbid+Ab8gLnATtygYtiDIJGQRRn2ZOiA==,
|
|
157
|
-
}
|
|
110
|
+
resolution: {integrity: sha512-SW13ws7BjaeJ6p7Q6CO2nchbYEc3X3J6WrmTTDto7yMPqVSZTUyY5Tjbid+Ab8gLnATtygYtiDIJGQRRn2ZOiA==}
|
|
158
111
|
dev: true
|
|
159
112
|
|
|
160
113
|
/magic-string@0.30.7:
|
|
161
|
-
resolution:
|
|
162
|
-
|
|
163
|
-
integrity: sha512-8vBuFF/I/+OSLRmdf2wwFCJCz+nSn0m6DPvGH1fS/KiQoSaR+sETbov0eIk9KhEKy8CYqIkIAnbohxT/4H0kuA==,
|
|
164
|
-
}
|
|
165
|
-
engines: { node: ">=12" }
|
|
114
|
+
resolution: {integrity: sha512-8vBuFF/I/+OSLRmdf2wwFCJCz+nSn0m6DPvGH1fS/KiQoSaR+sETbov0eIk9KhEKy8CYqIkIAnbohxT/4H0kuA==}
|
|
115
|
+
engines: {node: '>=12'}
|
|
166
116
|
dependencies:
|
|
167
|
-
|
|
117
|
+
'@jridgewell/sourcemap-codec': 1.4.15
|
|
168
118
|
dev: true
|
|
169
119
|
|
|
170
120
|
/mdn-data@2.0.30:
|
|
171
|
-
resolution:
|
|
172
|
-
{
|
|
173
|
-
integrity: sha512-GaqWWShW4kv/G9IEucWScBx9G1/vsFZZJUO+tD26M8J8z3Kw5RDQjaoZe03YAClgeS/SWPOcb4nkFBTEi5DUEA==,
|
|
174
|
-
}
|
|
121
|
+
resolution: {integrity: sha512-GaqWWShW4kv/G9IEucWScBx9G1/vsFZZJUO+tD26M8J8z3Kw5RDQjaoZe03YAClgeS/SWPOcb4nkFBTEi5DUEA==}
|
|
175
122
|
dev: true
|
|
176
123
|
|
|
177
124
|
/periscopic@3.1.0:
|
|
178
|
-
resolution:
|
|
179
|
-
{
|
|
180
|
-
integrity: sha512-vKiQ8RRtkl9P+r/+oefh25C3fhybptkHKCZSPlcXiJux2tJF55GnEj3BVn4A5gKfq9NWWXXrxkHBwVPUfH0opw==,
|
|
181
|
-
}
|
|
125
|
+
resolution: {integrity: sha512-vKiQ8RRtkl9P+r/+oefh25C3fhybptkHKCZSPlcXiJux2tJF55GnEj3BVn4A5gKfq9NWWXXrxkHBwVPUfH0opw==}
|
|
182
126
|
dependencies:
|
|
183
|
-
|
|
127
|
+
'@types/estree': 1.0.5
|
|
184
128
|
estree-walker: 3.0.3
|
|
185
129
|
is-reference: 3.0.2
|
|
186
130
|
dev: true
|
|
187
131
|
|
|
188
132
|
/source-map-js@1.0.2:
|
|
189
|
-
resolution:
|
|
190
|
-
|
|
191
|
-
integrity: sha512-R0XvVJ9WusLiqTCEiGCmICCMplcCkIwwR11mOSD9CR5u+IXYdiseeEuXCVAjS54zqwkLcPNnmU4OeJ6tUrWhDw==,
|
|
192
|
-
}
|
|
193
|
-
engines: { node: ">=0.10.0" }
|
|
133
|
+
resolution: {integrity: sha512-R0XvVJ9WusLiqTCEiGCmICCMplcCkIwwR11mOSD9CR5u+IXYdiseeEuXCVAjS54zqwkLcPNnmU4OeJ6tUrWhDw==}
|
|
134
|
+
engines: {node: '>=0.10.0'}
|
|
194
135
|
dev: true
|
|
195
136
|
|
|
196
137
|
/svelte@4.2.12:
|
|
197
|
-
resolution:
|
|
198
|
-
|
|
199
|
-
integrity: sha512-d8+wsh5TfPwqVzbm4/HCXC783/KPHV60NvwitJnyTA5lWn1elhXMNWhXGCJ7PwPa8qFUnyJNIyuIRt2mT0WMug==,
|
|
200
|
-
}
|
|
201
|
-
engines: { node: ">=16" }
|
|
138
|
+
resolution: {integrity: sha512-d8+wsh5TfPwqVzbm4/HCXC783/KPHV60NvwitJnyTA5lWn1elhXMNWhXGCJ7PwPa8qFUnyJNIyuIRt2mT0WMug==}
|
|
139
|
+
engines: {node: '>=16'}
|
|
202
140
|
dependencies:
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
141
|
+
'@ampproject/remapping': 2.2.1
|
|
142
|
+
'@jridgewell/sourcemap-codec': 1.4.15
|
|
143
|
+
'@jridgewell/trace-mapping': 0.3.23
|
|
144
|
+
'@types/estree': 1.0.5
|
|
207
145
|
acorn: 8.11.3
|
|
208
146
|
aria-query: 5.3.0
|
|
209
147
|
axobject-query: 4.0.0
|
package/package.json
CHANGED
package/src/emacs.ts
CHANGED
|
@@ -30,13 +30,13 @@ export function convert(content: string, options?: OxSvelteOptions): string {
|
|
|
30
30
|
)}'`;
|
|
31
31
|
}
|
|
32
32
|
if (latexFragmentFormat) {
|
|
33
|
-
command += ` --latex-fragment-format ${latexFragmentFormat.replaceAll(
|
|
33
|
+
command += ` --latex-fragment-format '${latexFragmentFormat.replaceAll(
|
|
34
34
|
"'",
|
|
35
35
|
"'\\''",
|
|
36
|
-
)}`;
|
|
36
|
+
)}'`;
|
|
37
37
|
}
|
|
38
38
|
if (srcBlockFormat) {
|
|
39
|
-
command += ` --src-block-format ${srcBlockFormat.replaceAll("'", "'\\''")}`;
|
|
39
|
+
command += ` --src-block-format '${srcBlockFormat.replaceAll("'", "'\\''")}'`;
|
|
40
40
|
}
|
|
41
41
|
if (imports) {
|
|
42
42
|
const sexp = list(
|