{"versions":{"0.1.0":{"name":"@create-markdown/core","version":"0.1.0","description":"Block-based markdown parsing and serialization with zero dependencies","author":{"name":"Val Alexander","email":"val@viewdue.ai"},"license":"MIT","repository":{"type":"git","url":"git+https://github.com/BunsDev/create-markdown.git","directory":"packages/core"},"homepage":"https://github.com/BunsDev/create-markdown/tree/main/packages/core","bugs":{"url":"https://github.com/BunsDev/create-markdown/issues"},"keywords":["markdown","parser","serializer","blocks","typescript"],"type":"module","main":"./dist/index.cjs","module":"./dist/index.js","types":"./dist/index.d.ts","exports":{".":{"import":{"types":"./dist/index.d.ts","default":"./dist/index.js"},"require":{"types":"./dist/index.d.ts","default":"./dist/index.cjs"}}},"scripts":{"build":"bun run build:esm && bun run build:cjs && bun run build:types","build:esm":"bun build ./src/index.ts --outfile ./dist/index.js --format esm","build:cjs":"bun build ./src/index.ts --outfile ./dist/index.cjs --format cjs","build:types":"tsc --emitDeclarationOnly --declaration --outDir dist","dev":"bun run --watch src/index.ts","clean":"rm -rf dist","typecheck":"tsc --noEmit","test":"vitest run","test:watch":"vitest"},"devDependencies":{"typescript":"^5.3.0","vitest":"^2.1.0"},"engines":{"node":">=20.0.0"},"_id":"@create-markdown/core@0.1.0","gitHead":"62e688b8f8cab05c06fb62683a6de0ecfa34e462","_nodeVersion":"22.21.1","_npmVersion":"10.9.4","dist":{"integrity":"sha512-L/3oIJfHiU9W5tnBBNZXTSBpNXbZL/MJG2zy3bjl33CcF22nRYMLhBErczj0Ggr6RGNjdgewSC3OyiraINOgkg==","shasum":"17b7cf4ac822ccad03b180742c0b95330bb728db","tarball":"http://123.232.10.234:8212/nexus/content/groups/npm-public/@create-markdown/core/-/core-0.1.0.tgz","fileCount":22,"unpackedSize":139453,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEYCIQDG2nO+f9klFCKAyB0fU09aWwH7wuv0fuAtfFvyhOLCQAIhALvZ311vBb5TWKxeTkLWc5CPAqKWgnSRvc726neBKxPt"}],"size":28697},"_npmUser":{"name":"anonymous","email":"bunsthedev@gmail.com"},"directories":{},"maintainers":[{"name":"anonymous","email":"bunsthedev@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/core_0.1.0_1769560335691_0.6579754481348199"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2026-01-28T00:32:15.843Z","publish_time":1769560335843,"_source_registry_name":"default","contributors":[]},"0.2.0":{"name":"@create-markdown/core","version":"0.2.0","description":"Block-based markdown parsing and serialization with zero dependencies","author":{"name":"Val Alexander","email":"val@viewdue.ai"},"license":"MIT","repository":{"type":"git","url":"git+https://github.com/BunsDev/create-markdown.git","directory":"packages/core"},"homepage":"https://github.com/BunsDev/create-markdown/tree/main/packages/core","bugs":{"url":"https://github.com/BunsDev/create-markdown/issues"},"keywords":["markdown","parser","serializer","blocks","typescript"],"type":"module","main":"./dist/index.cjs","module":"./dist/index.js","types":"./dist/index.d.ts","exports":{".":{"import":{"types":"./dist/index.d.ts","default":"./dist/index.js"},"require":{"types":"./dist/index.d.ts","default":"./dist/index.cjs"}}},"scripts":{"build":"bun run build:esm && bun run build:cjs && bun run build:types","build:esm":"bun build ./src/index.ts --outfile ./dist/index.js --format esm","build:cjs":"bun build ./src/index.ts --outfile ./dist/index.cjs --format cjs","build:types":"tsc --emitDeclarationOnly --declaration --outDir dist","dev":"bun run --watch src/index.ts","clean":"rm -rf dist","typecheck":"tsc --noEmit","test":"vitest run","test:watch":"vitest"},"devDependencies":{"typescript":"^5.3.0","vitest":"^2.1.0"},"engines":{"node":">=20.0.0"},"gitHead":"55871c863399a74cdf06376541be8908275612b9","_id":"@create-markdown/core@0.2.0","_nodeVersion":"24.13.0","_npmVersion":"11.6.2","dist":{"integrity":"sha512-lCvQcIY+C+oyHbojZSxuEwgVjcrSgT0yU7VvRrx6g2dyC2kb/HHyakkcq15n6SjXUCgvhocxnXQURoROH/cKbA==","shasum":"ae8caae1f220b80f0964bb9ff7e9175e6325fe16","tarball":"http://123.232.10.234:8212/nexus/content/groups/npm-public/@create-markdown/core/-/core-0.2.0.tgz","fileCount":22,"unpackedSize":139453,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEYCIQDWKndqOaty9RkDrcYAmZ7k72jH93T8CjAJCMjkULTzhgIhAO2qoA26H7oXXtVxCGHrLlIR7GJeQejQEcQ1gELCUKqk"}],"size":28699},"_npmUser":{"name":"anonymous","email":"bunsthedev@gmail.com"},"directories":{},"maintainers":[{"name":"anonymous","email":"bunsthedev@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/core_0.2.0_1771708153006_0.45052355590175064"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2026-02-21T21:09:13.153Z","publish_time":1771708153153,"_source_registry_name":"default","contributors":[]},"2.0.0":{"name":"@create-markdown/core","version":"2.0.0","description":"Block-based markdown parsing and serialization with zero dependencies","author":{"name":"Val Alexander","email":"val@viewdue.ai"},"license":"MIT","repository":{"type":"git","url":"git+https://github.com/BunsDev/create-markdown.git","directory":"packages/core"},"homepage":"https://github.com/BunsDev/create-markdown/tree/main/packages/core","bugs":{"url":"https://github.com/BunsDev/create-markdown/issues"},"keywords":["markdown","parser","serializer","blocks","typescript"],"type":"module","main":"./dist/index.cjs","module":"./dist/index.js","types":"./dist/index.d.ts","exports":{".":{"import":{"types":"./dist/index.d.ts","default":"./dist/index.js"},"require":{"types":"./dist/index.d.ts","default":"./dist/index.cjs"}}},"devDependencies":{"typescript":"^5.3.0","vitest":"^2.1.0"},"engines":{"node":">=20.0.0"},"scripts":{"build":"pnpm run build:js && pnpm run build:types","build:js":"tsup --config tsup.config.ts","build:types":"tsc --emitDeclarationOnly --declaration --outDir dist","dev":"tsup --config tsup.config.ts --watch","clean":"rm -rf dist","typecheck":"tsc --noEmit","test":"vitest run","test:watch":"vitest"},"_id":"@create-markdown/core@2.0.0","_integrity":"sha512-xOmhoiDSa82EzjXp3aViQdB+xfCP4E2jEKxJiKJ702sup3p/CTCtL8fZBKQ3BvzASQRpq/xKCRXZZwRrg1DmZQ==","_resolved":"/private/var/folders/gn/2__pq0pj3fzc061mmrp1lxz00000gn/T/5175016eb13bc0358b70f22adf52dbf6/create-markdown-core-2.0.0.tgz","_from":"file:create-markdown-core-2.0.0.tgz","_nodeVersion":"24.13.0","_npmVersion":"11.12.0","dist":{"integrity":"sha512-xOmhoiDSa82EzjXp3aViQdB+xfCP4E2jEKxJiKJ702sup3p/CTCtL8fZBKQ3BvzASQRpq/xKCRXZZwRrg1DmZQ==","shasum":"6ae6276d6d50e78f680dff075857c5f9c7ae9644","tarball":"http://123.232.10.234:8212/nexus/content/groups/npm-public/@create-markdown/core/-/core-2.0.0.tgz","fileCount":25,"unpackedSize":383407,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEQCIAspXZizx3jaqU4KFYkFjz0rxyJYV+Nc5QMgxBm1tDazAiAUyCNHbjril6pnihYo4Sxv3lxBvS9Btd73KRFn2JgXmg=="}],"size":76118},"_npmUser":{"name":"anonymous","email":"bunsthedev@gmail.com"},"directories":{},"maintainers":[{"name":"anonymous","email":"bunsthedev@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/core_2.0.0_1774324101872_0.11391676686710306"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2026-03-24T03:48:22.020Z","publish_time":1774324102020,"_source_registry_name":"default","contributors":[]}},"dist-tags":{"latest":"2.0.0"},"name":"@create-markdown/core","time":{"created":"2026-02-04T08:23:29.945Z","modified":"2026-03-24T03:48:29.837Z","0.1.0":"2026-01-28T00:32:15.843Z","0.2.0":"2026-02-21T21:09:13.153Z","2.0.0":"2026-03-24T03:48:22.020Z"},"readme":"# @create-markdown/core\n\nBlock-based markdown parsing and serialization with zero dependencies.\n\n## Installation\n\n```bash\n# Using pnpm\npnpm add @create-markdown/core\n\n# Using npm\nnpm install @create-markdown/core\n\n# Using yarn\nyarn add @create-markdown/core\n\n# Using pnpm\npnpm add @create-markdown/core\n```\n\n## Quick Start\n\n### Parse Markdown to Blocks\n\n```typescript\nimport { parse } from '@create-markdown/core';\n\nconst blocks = parse(`# Hello World\n\nThis is **bold** and *italic* text.\n\n- Item one\n- Item two\n`);\n```\n\n### Create Blocks Programmatically\n\n```typescript\nimport { h1, paragraph, bulletList, bold, italic, spans } from '@create-markdown/core';\n\nconst blocks = [\n  h1('My Document'),\n  paragraph(spans(\n    bold('Important: '),\n    { text: 'This is ', styles: {} },\n    italic('really'),\n    { text: ' cool!', styles: {} }\n  )),\n  bulletList(['First item', 'Second item', 'Third item']),\n];\n```\n\n### Serialize Blocks to Markdown\n\n```typescript\nimport { stringify, h1, paragraph, codeBlock } from '@create-markdown/core';\n\nconst markdown = stringify([\n  h1('Hello'),\n  paragraph('World'),\n  codeBlock('console.log(\"Hi!\");', 'javascript'),\n]);\n```\n\n## Block Types\n\n| Type | Factory Function | Description |\n|------|-----------------|-------------|\n| `paragraph` | `paragraph(content)` | Text paragraph |\n| `heading` | `heading(level, content)` or `h1`-`h6` | Heading levels 1-6 |\n| `bulletList` | `bulletList(items)` | Unordered list |\n| `numberedList` | `numberedList(items)` | Ordered list |\n| `checkList` | `checkList(items)` | Task list with checkboxes |\n| `codeBlock` | `codeBlock(code, language?)` | Fenced code block |\n| `blockquote` | `blockquote(content)` | Block quote |\n| `image` | `image(url, alt?)` | Image |\n| `divider` | `divider()` | Horizontal rule |\n| `table` | `table(headers, rows)` | Table with headers |\n| `callout` | `callout(type, content)` | Callout/admonition |\n\n## API Reference\n\n### Parsing\n\n- `parse(markdown)` - Parse markdown string to blocks\n- `markdownToBlocks(markdown, options?)` - Full parser with options\n- `markdownToDocument(markdown)` - Parse to a Document object\n\n### Serialization\n\n- `stringify(blocks)` - Serialize blocks to markdown\n- `blocksToMarkdown(blocks, options?)` - Full serializer with options\n- `documentToMarkdown(doc)` - Serialize a Document\n\n### Document Operations\n\n- `createDocument(blocks?, options?)` - Create a new document\n- `insertBlock(doc, block, index?)` - Insert block at position\n- `appendBlock(doc, block)` - Add block at end\n- `removeBlock(doc, blockId)` - Remove block by ID\n- `updateBlock(doc, blockId, updates)` - Update block properties\n- `moveBlock(doc, blockId, newIndex)` - Reorder blocks\n- `findBlock(doc, blockId)` - Find block by ID\n\n## License\n\nMIT","users":{}}