fix: latex-environment belongs to paragraph
All checks were successful
build / build (push) Successful in 5s

wip: feat: org-element specs
This commit was merged in pull request #15.
This commit is contained in:
2026-03-08 20:06:02 -06:00
parent 2198b5f409
commit 1629efb378
11 changed files with 377 additions and 22 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 ()