{"_id":"@aisvision/quasidian-core","_rev":"2-273ed57785d01c77f50733d3f450751a","name":"@aisvision/quasidian-core","dist-tags":{"latest":"0.1.1"},"versions":{"0.1.0":{"name":"@aisvision/quasidian-core","version":"0.1.0","author":{"name":"AIS Vision Systems"},"license":"SEE LICENSE IN LICENSE.md","_id":"@aisvision/quasidian-core@0.1.0","maintainers":[{"name":"xavianguera","email":"xavi.anguera@aisvision.com"}],"homepage":"https://github.com/AIS-Vision-Systems/Quasidian","bugs":{"url":"https://github.com/AIS-Vision-Systems/Quasidian/issues"},"dist":{"shasum":"73d3735c13097e4815c0c63ec62e1d000d400083","tarball":"https://registry.npmjs.org/@aisvision/quasidian-core/-/quasidian-core-0.1.0.tgz","fileCount":64,"integrity":"sha512-04lad50e8Yn9YuVMME2/RQUT+KEAAVLZwNfp03kwYr1D1CIUB1Dr48yAexfqr4rNWIJuc7dKbtaOvu0KpHjnRg==","signatures":[{"sig":"MEYCIQDBfWdA4FNcqGy9Es3EIgh9kg9b4MYZyHBG9Rj7cjzA3gIhAOFV2n+ou6C2hCIzz3zll2/5KLmCR+Ivep2NuEmHWbOZ","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":692845},"main":"./dist/index.js","type":"module","types":"./dist/index.d.ts","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js"},"./core.css":"./core.css","./theme.css":"./theme.css"},"gitHead":"9c0267912cd4bce271e6e66143266f66113b1776","scripts":{"build":"vite build && tsc -p tsconfig.build.json"},"_npmUser":{"name":"xavianguera","email":"xavi.anguera@aisvision.com"},"repository":{"url":"git+https://github.com/AIS-Vision-Systems/Quasidian.git","type":"git","directory":"packages/core"},"_npmVersion":"12.0.2","description":"Embeddable markdown editor core of Quasidian: CodeMirror 6 with Obsidian-style Live Preview and a reading-mode HTML renderer fed by the same Lezer tree","directories":{},"_nodeVersion":"24.18.0","dependencies":{"katex":"^0.18.2"},"_hasShrinkwrap":false,"peerDependencies":{"@lezer/common":"^1.5.2","@lezer/markdown":"^1.7.2","@codemirror/view":"^6.43.8","@lezer/highlight":"^1.2.3","@codemirror/state":"^6.7.1","@codemirror/commands":"^6.10.4","@codemirror/language":"^6.12.4","@codemirror/autocomplete":"^6.20.3","@codemirror/lang-markdown":"^6.5.2","@codemirror/language-data":"^6.5.2"},"_npmOperationalInternal":{"tmp":"tmp/quasidian-core_0.1.0_1787588342485_0.7972937913267022","host":"s3://npm-registry-packages-npm-production"}},"0.1.1":{"name":"@aisvision/quasidian-core","version":"0.1.1","description":"Embeddable markdown editor core of Quasidian: CodeMirror 6 with Obsidian-style Live Preview and a reading-mode HTML renderer fed by the same Lezer tree","license":"SEE LICENSE IN LICENSE.md","author":{"name":"AIS Vision Systems"},"homepage":"https://github.com/AIS-Vision-Systems/Quasidian","repository":{"type":"git","url":"git+https://github.com/AIS-Vision-Systems/Quasidian.git","directory":"packages/core"},"type":"module","main":"./dist/index.js","types":"./dist/index.d.ts","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js"},"./theme.css":"./theme.css","./core.css":"./core.css"},"scripts":{"build":"vite build && tsc -p tsconfig.build.json"},"peerDependencies":{"@codemirror/autocomplete":"^6.20.3","@codemirror/commands":"^6.10.4","@codemirror/lang-markdown":"^6.5.2","@codemirror/language":"^6.12.4","@codemirror/language-data":"^6.5.2","@codemirror/state":"^6.7.1","@codemirror/view":"^6.43.8","@lezer/common":"^1.5.2","@lezer/highlight":"^1.2.3","@lezer/markdown":"^1.7.2"},"dependencies":{"katex":"^0.18.2"},"gitHead":"55608acf3d7bd0d07fabc413e254394fe1eea498","_id":"@aisvision/quasidian-core@0.1.1","bugs":{"url":"https://github.com/AIS-Vision-Systems/Quasidian/issues"},"_nodeVersion":"24.19.0","_npmVersion":"12.0.2","dist":{"integrity":"sha512-jl94SYQGoQyZQYaw8bT0/IzUWctSy5ycpWV0+FDrQwRdgjWw6HtPf6YarG10obLj7pC05xp12iw9lMrMhubeqQ==","shasum":"2bd30097c5c895c2c2680e844969f6b7ff94ca0c","tarball":"https://registry.npmjs.org/@aisvision/quasidian-core/-/quasidian-core-0.1.1.tgz","fileCount":64,"unpackedSize":674523,"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@aisvision%2fquasidian-core@0.1.1","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIQDIuVKCScnPTtpEnRfq4XlMetOwZFNq70siJBFgOx7hOQIgMvcJmArjKDucjYh83ZVUcUUj8EtIxe0YtJ+NcuMRj7o="}]},"_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"oidc:10e7920e-d42e-4cc0-bade-8b4ec80e88f7"}},"directories":{},"maintainers":[{"name":"xavianguera","email":"xavi.anguera@aisvision.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/quasidian-core_0.1.1_1787660346886_0.5633862914650543"},"_hasShrinkwrap":false}},"time":{"created":"2026-08-24T16:19:02.311Z","modified":"2026-08-25T12:19:07.517Z","0.1.0":"2026-08-24T16:19:02.673Z","0.1.1":"2026-08-25T12:19:07.053Z"},"bugs":{"url":"https://github.com/AIS-Vision-Systems/Quasidian/issues"},"author":{"name":"AIS Vision Systems"},"license":"SEE LICENSE IN LICENSE.md","homepage":"https://github.com/AIS-Vision-Systems/Quasidian","repository":{"type":"git","url":"git+https://github.com/AIS-Vision-Systems/Quasidian.git","directory":"packages/core"},"description":"Embeddable markdown editor core of Quasidian: CodeMirror 6 with Obsidian-style Live Preview and a reading-mode HTML renderer fed by the same Lezer tree","maintainers":[{"name":"xavianguera","email":"xavi.anguera@aisvision.com"}],"readme":"# @aisvision/quasidian-core\n\nThe embeddable heart of [Quasidian](https://github.com/AIS-Vision-Systems/Quasidian): a **CodeMirror 6 markdown editor with Obsidian-style Live Preview**, and a **reading-mode HTML renderer** fed by the *same* Lezer syntax tree — so the two views can never drift apart. No Tauri, no filesystem, no app framework: the desktop app and this package share the same sources.\n\n- Obsidian dialect: wikilinks (`[[note]]`, aliases, headings), embeds/transclusions, callouts, footnotes, math (KaTeX), task lists, tables with cell editing, frontmatter properties.\n- Live Preview (syntax hides away from the active line), a plain-text source mode, section folding, line numbers.\n- Reading render from the same tree: `renderToHtml(markdown)`.\n- Host integration by injection: wikilink resolution, embed sources and navigation come in through the editor hooks; UI strings ship with English defaults (`setCoreTranslator` plugs in your translator); icons ship built in (`setIconProvider` overrides them).\n\n## Install\n\n```sh\nnpm install @aisvision/quasidian-core\n```\n\n`@codemirror/*` and `@lezer/*` are **peer dependencies** — the host installs them once, because two copies of `@codemirror/state` on one page break the editor. KaTeX is a regular dependency.\n\n## Use\n\n```ts\nimport \"@aisvision/quasidian-core/theme.css\"; // Obsidian-style variables\nimport \"@aisvision/quasidian-core/core.css\"; // component styles\nimport \"katex/dist/katex.min.css\";\nimport { createEditor, renderToHtml } from \"@aisvision/quasidian-core\";\n\nconst editor = createEditor(hostElement, hooks, config);\neditor.setDoc(\"# Hello\\n\\nSome **markdown** with [[wikilinks]].\");\n\npreviewElement.innerHTML = renderToHtml(editor.getDoc());\n```\n\n`hooks` tells the core how your application resolves things (`isResolved`, `resolveEmbedSrc`, `renderEmbedNote`, completions, navigation callbacks) — see the `EditorHooks` type. `config` covers line numbers, indentation, spellcheck and auto-pairing — see `EditorConfig`. Set `<body class=\"theme-dark\">` (or `theme-light`) for the stylesheet's variables to apply.\n\nA complete minimal embedding lives in [`packages/demo`](../demo) of the repository:\n\n```sh\nnpm run build -w @aisvision/quasidian-core\nnpm run dev -w quasidian-core-demo\n```\n\n## License\n\nDual-licensed like Quasidian itself: [PolyForm Noncommercial 1.0.0](LICENSE.md) for noncommercial use, with a [commercial license](LICENSE-COMMERCIAL.md) available. © AIS Vision Systems.\n","readmeFilename":"README.md"}