Files
Mermaid-Preview-Nova/Tests/fixtures/sample.md
T
thatguygriffandClaude Opus 5 aebc72b85e Add CLAUDE.md and the test harness
CLAUDE.md records the Nova constraints this extension is built around —
established by reading Nova 14.1's bundle and probing its preview server,
and expensive to re-derive: no previewer extension point, generated pages
must live under the preview root, dot-directories are served, and no API
reaches into a preview WebView. It also flags the one unverified
assumption, that a tab showing Preview still appears in
nova.workspace.textEditors, with its symptom and fix.

Tests/ is the harness that built the extension, kept rather than left in a
scratchpad: a stubbed Nova runtime backed by the real filesystem, node
suites for generation and the four close paths, and a headless-browser
render test that skips itself without a browser. It caught the ./ doubling
in rebased links and checkbox state not surviving serialization.

Co-Authored-By: Claude Opus 5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01TueXpMi7eAtgWPuMr4ii52
2026-08-20 23:02:08 -03:00

46 lines
721 B
Markdown

---
title: Front matter should be hidden
---
# Sample Document
Intro paragraph with a [relative link](./other.md), `inline code`, **bold** and a
[TOC link](#a-second-heading).
- [ ] an unchecked task
- [x] a checked task
- a plain item
| Column | Another |
| --- | --- |
| one | two |
| three | four |
```js
const answer = 42;
```
```mermaid
graph TD
A[Start] --> B{Works?}
B -->|yes| C[Ship it]
B -->|no| D[Fix it]
D --> A
```
## A Second Heading
```mermaid
sequenceDiagram
Nova->>Extension: Preview Markdown
Extension->>Disk: write preview.html
Disk-->>Nova: file changed
Nova->>Preview: reload
```
```mermaid
this is not valid mermaid at all {{{
```
![an image](img/logo.png)