Render markdown (Jest)
Generated output
Section titled “Generated output”### ✅ Render markdown
- **Given** the markdown input is **Markdown** ```markdown # Title - Item 1 - Item 2 ```- **When** the user previews the markdown- **Then** the preview should show a heading "Title"- **And** the preview should show a list with 2 itemsJest code
Section titled “Jest code”import { story } from 'executable-stories-jest';
it("Render markdown", () => { story.init(); story.given("the markdown input is"); story.code({ label: "Markdown", content: `# Title\n- Item 1\n- Item 2`, lang: "markdown", }); story.when("the user previews the markdown"); story.then('the preview should show a heading "Title"'); story.then("the preview should show a list with 2 items");});