{
  "name": "preact-sample-sample-doc-tex",
  "title": "preact-sample-sample-doc-tex",
  "type": "registry:component",
  "description": "",
  "registryDependencies": [],
  "dependencies": [
    "prosekit@^0.22.0"
  ],
  "files": [
    {
      "path": "registry/src/preact/sample/sample-doc-tex.ts",
      "type": "registry:component",
      "target": "components/editor/sample/sample-doc-tex.ts",
      "content": "import type { NodeJSON } from 'prosekit/core'\n\nconst EULER_IDENTITY = String.raw`e^{i\\pi} + 1 = 0`\n\nconst QUADRATIC_FORMULA = String.raw`x = \\frac{-b \\pm \\sqrt{b^2 - 4ac}}{2a}`\n\nconst GAUSSIAN_INTEGRAL = String.raw`\\int_{-\\infty}^{\\infty} e^{-x^2} \\, dx = \\sqrt{\\pi}`\n\nexport const sampleContent: NodeJSON = {\n  type: 'doc',\n  content: [\n    {\n      type: 'heading',\n      attrs: { level: 2 },\n      content: [{ type: 'text', text: 'Inline equations' }],\n    },\n    {\n      type: 'paragraph',\n      content: [\n        { type: 'text', text: \"Euler's identity \" },\n        { type: 'mathInline', content: [{ type: 'text', text: EULER_IDENTITY }] },\n        { type: 'text', text: ' and the quadratic formula ' },\n        { type: 'mathInline', content: [{ type: 'text', text: QUADRATIC_FORMULA }] },\n        { type: 'text', text: ' can appear within text. Type ' },\n        { type: 'text', marks: [{ type: 'code' }], text: '$...$' },\n        { type: 'text', text: ' to insert an inline equation.' },\n      ],\n    },\n    {\n      type: 'heading',\n      attrs: { level: 2 },\n      content: [{ type: 'text', text: 'Block equations' }],\n    },\n    {\n      type: 'paragraph',\n      content: [\n        { type: 'text', text: 'The Gaussian integral:' },\n      ],\n    },\n    {\n      type: 'mathBlock',\n      content: [{ type: 'text', text: GAUSSIAN_INTEGRAL }],\n    },\n    {\n      type: 'paragraph',\n      content: [\n        { type: 'text', text: 'Type ' },\n        { type: 'text', marks: [{ type: 'code' }], text: '$$' },\n        { type: 'text', text: ' in a new line and press Enter to create a block equation.' },\n      ],\n    },\n  ],\n}\n"
    }
  ],
  "meta": {
    "hasIcons": false,
    "hidden": false,
    "story": "",
    "framework": "preact",
    "accumulatedFiles": [
      "registry/src/preact/sample/sample-doc-tex.ts"
    ],
    "internalDependencies": []
  },
  "$schema": "https://ui.shadcn.com/schema/registry-item.json"
}
