import{M as t}from"./markdown-editor-Y4eMsgVb.js";import"./iframe-B8FSoBNY.js";import"./preload-helper-PPVm8Dsz.js";import"./compiler-runtime-BXE7OOXE.js";import"./rich-text-theme-Bkhh9rAZ.js";import"./index-DaXC_qY_.js";import"./index-DpB4ozcR.js";import"./factory-DAJZwK4o.js";import"./flex-DAJL4AFZ.js";import"./CodeBlockPlugin-C3OWpvP8.js";import"./index-B0y2_lLF.js";import"./index-cFwdnc0b.js";import"./create-recipe-context-BU56IzEo.js";import"./textarea-rqmaWSc5.js";import"./factory-BR3bc_RM.js";import"./use-field-context-DoxKQlMm.js";import"./computed-style-C0hzrq9-.js";import"./table-BKNSzs2r.js";import"./create-slot-recipe-context-DAhDE6G_.js";import"./LexicalHistoryPlugin.prod-BQAibkDj.js";import"./TreeViewPlugin-CyVKCrKJ.js";import"./FloatingTextFormatToolbarPlugin-B6jc8xvg.js";import"./resource-badge-Bw5UoU4J.js";import"./createLucideIcon-CcBBUKX8.js";import"./file-text-D5m8MJlG.js";import"./tooltip-DZxUoouw.js";import"./portal-CZHfPTRw.js";import"./normalize-props-D7NI5JRu.js";import"./tooltip-C_a-XGZ8.js";import"./use-presence-context-DK2PGZth.js";import"./create-split-props-u5h9OPvL.js";import"./overflow-CkG1DOya.js";import"./icon-button-DHiUe7rR.js";import"./button-C7it2n8t.js";import"./spinner-ZYH_gvW-.js";import"./index-CXwl6T4k.js";import"./x-D42ziktz.js";import"./stack-CN4X31TA.js";import"./markdown-BLUemkxK.js";const r=`
# MarkdownEditor

This is a rich message rendered from Markdown.

- Supports lists
- Links like [Pufflig](https://pufflig.com)
- Quotes

> A nice quote to demo the Quote node.

| Feature | Supported |
| ------- | --------- |
| Tables  | ✅         |
| Links   | ✅         |
| Lists   | ✅         |

---

## Subheading
Some more text under a subheading.

---

## Table Example

| Name | Value |
| ---- | ----- |
| Foo  | Bar   |
| Baz  | Qux   |

---

# Heading 1

## Heading 2

### Heading 3

This paragraph has **bold**, *italic*, ~~strikethrough~~ text and <u>underline</u>.

Inline link to [Chakra UI](https://chakra-ui.com).

ReferenceLink token examples:
- {{link('$PROJECT/sources/orders.csv')}}
- {{link('$PROJECT/sources/readme.md')}}

---

# Nested Lists

- Fruits
  - Apple
  - Banana
  - Orange
- Vegetables
  - Carrot
  - Lettuce

1. First
2. Second
   1. Second.A
   2. Second.B

---

A paragraph above the rule.

---

> This is a blockquote.
> It can span multiple lines.

\\[ G_{\\mu\\nu} + \\Lambda g_{\\mu\\nu} = \\frac{8\\pi G}{c^4} T_{\\mu\\nu} \\]
Where: \\( G_{\\mu\\nu} \\) is the Einstein tensor, which represents the curvature of spacetime. \\( \\Lambda \\) is the cosmological constant. \\( g_{\\mu\\nu} \\) is the metric tensor, which describes the geometry of spacetime. \\( G \\) is the gravitational constant. \\( c \\) is the speed of light in a vacuum. \\( T_{\\mu\\nu} \\) is the stress-energy tensor, which represents the distribution of matter and energy in spacetime.

\\[
\\begin{align}
a + b &= c \\\\
d + e &= f \\\\
g + h &= i
\\end{align}
\\]

---

## Code Blocks

SQL:

\`\`\`sql
CREATE TABLE users (
  id SERIAL PRIMARY KEY,
  email TEXT NOT NULL UNIQUE,
  created_at TIMESTAMPTZ DEFAULT NOW()
);

SELECT id, email
FROM users
WHERE created_at > NOW() - INTERVAL '7 days'
ORDER BY created_at DESC;
\`\`\`

Python:

\`\`\`python
def fib(n: int):
    a, b = 0, 1
    for _ in range(n):
        yield a
        a, b = b, a + b

print(list(fib(10)))
\`\`\`
`,W={title:"Editors/Markdown Editor",component:t,parameters:{layout:"padded"},args:{debug:!1,isEditable:!0,defaultState:r},argTypes:{defaultState:{control:"text",description:"Markdown source to render"},debug:{control:"boolean",description:"Show Lexical tree for debugging"}}},e={};e.parameters={...e.parameters,docs:{...e.parameters?.docs,source:{originalSource:"{}",...e.parameters?.docs?.source}}};const q=["Basic"];export{e as Basic,q as __namedExportsOrder,W as default};
