wip: fix: latex-environment belongs to paragraph
All checks were successful
build / build (push) Successful in 1m27s
All checks were successful
build / build (push) Successful in 1m27s
This commit is contained in:
@@ -2,13 +2,17 @@
|
|||||||
|
|
||||||
const { parse } = require ("uniorg-parse/lib/parser.js");
|
const { parse } = require ("uniorg-parse/lib/parser.js");
|
||||||
|
|
||||||
|
const opts = {
|
||||||
|
trackPosition: true
|
||||||
|
}
|
||||||
|
|
||||||
async function main () {
|
async function main () {
|
||||||
const chunks = []
|
const chunks = []
|
||||||
for await (const chunk of process.stdin) {
|
for await (const chunk of process.stdin) {
|
||||||
chunks.push (chunk)
|
chunks.push (chunk)
|
||||||
}
|
}
|
||||||
const orgText = Buffer.concat (chunks).toString ("utf8")
|
const orgText = Buffer.concat (chunks).toString ("utf8")
|
||||||
process.stdout.write (JSON.stringify (parse (orgText)))
|
process.stdout.write (JSON.stringify (parse (orgText, opts)))
|
||||||
}
|
}
|
||||||
|
|
||||||
main ()
|
main ()
|
||||||
|
|||||||
@@ -48,6 +48,12 @@
|
|||||||
\newcommand{\optic}[3]{\opticname{#1}^\prime\;#2\;#3}
|
\newcommand{\optic}[3]{\opticname{#1}^\prime\;#2\;#3}
|
||||||
\newcommand{\Optic}[5]{\opticname{#1}\;#2\;#3\;#4\;#5}
|
\newcommand{\Optic}[5]{\opticname{#1}\;#2\;#3\;#4\;#5}
|
||||||
|
|
||||||
|
% Default uses arrow glyphs from the active font, which are kinda ugly in the
|
||||||
|
% case of Plex.
|
||||||
|
\tikzcdset{
|
||||||
|
arrow style=tikz
|
||||||
|
}
|
||||||
|
|
||||||
\begin{document}
|
\begin{document}
|
||||||
\setlength\abovedisplayskip{0pt} % Remove padding before equation environments.
|
\setlength\abovedisplayskip{0pt} % Remove padding before equation environments.
|
||||||
%% \color[rgb]{0.000,0.000,0.004}\special{dvisvgm:currentcolor on}\setcounter{equation}{0}%
|
%% \color[rgb]{0.000,0.000,0.004}\special{dvisvgm:currentcolor on}\setcounter{equation}{0}%
|
||||||
|
|||||||
@@ -208,3 +208,6 @@
|
|||||||
:children first-section-nodes})
|
:children first-section-nodes})
|
||||||
rest)]
|
rest)]
|
||||||
(assoc node :children new-children)))
|
(assoc node :children new-children)))
|
||||||
|
|
||||||
|
(defn gather-latex-paragraphs [node]
|
||||||
|
)
|
||||||
|
|||||||
Reference in New Issue
Block a user