mirror of
https://github.com/wekan/wekan.git
synced 2026-11-24 09:59:47 -05:00
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 !
4 lines
197 B
JavaScript
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';
|