wip: fix: latex-environment belongs to paragraph
All checks were successful
build / build (push) Successful in 1m27s

This commit is contained in:
2026-03-08 20:06:02 -06:00
parent 2198b5f409
commit 86db8d0fe2
3 changed files with 14 additions and 1 deletions

View File

@@ -2,13 +2,17 @@
const { parse } = require ("uniorg-parse/lib/parser.js");
const opts = {
trackPosition: true
}
async function main () {
const chunks = []
for await (const chunk of process.stdin) {
chunks.push (chunk)
}
const orgText = Buffer.concat (chunks).toString ("utf8")
process.stdout.write (JSON.stringify (parse (orgText)))
process.stdout.write (JSON.stringify (parse (orgText, opts)))
}
main ()