Files
wekan/server/lib/leoImport.js
T
Lauri Ojansivu 286ed906a9 Import and export Leo .leo outlines.
The Leo literate editor's XML outline is a new import source and export
format: top-level nodes are lists, their children are cards with the node
body as the description and a marked node as done, and deeper nodes are
checklists. Clones keep their headline and children. The raw XML is parsed
server-side with htmlparser2 in XML mode (no DTDs or external entities), a
self-clone cannot loop and a clone bomb is refused at 100000 nodes, and the
parsed tasks then pass the shared import sanitizer.

Thanks to xet7 !
2026-09-29 18:41:21 +03:00

4 lines
197 B
JavaScript

// Server-only entry to the .leo parser: models/import.js requires this inside
// its server branch so htmlparser2 is not bundled for the client.
export { parseLeo } from '/models/lib/leoOutline';