fix: latex-environment belongs to paragraph
All checks were successful
build / build (push) Successful in 5s
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:
@@ -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 ()
|
||||
|
||||
Reference in New Issue
Block a user