Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions CLAUDE.md
Original file line number Diff line number Diff line change
Expand Up @@ -164,6 +164,9 @@ Text input system based on Rope data structure:
- Reference macOS/Windows control API design for naming
- AI-generated code must be refactored to match project style
- Mark AI-generated portions when submitting PRs
- When creating a PR, inspect previous PR titles in the repository and match
that style. Do not blindly use conventional prefixes like `fix:` or `feat:`
unless the existing PR title style uses them.

## Icon System

Expand Down
5 changes: 5 additions & 0 deletions _typos.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
[default]
extend-ignore-re = ['\\u\{[0-9A-Fa-f]+\}']

[files]
extend-exclude = ["crates/story/src/fixtures/"]
32 changes: 25 additions & 7 deletions crates/story/examples/fixtures/test.md
Original file line number Diff line number Diff line change
Expand Up @@ -242,17 +242,23 @@ This is paragraph of the heading 6.

### Math

This is an inline math $x^2 + y^2 = z^2$.

This is a block math:
Inline math renders in the same text flow, for example $e^{i\pi} + 1 = 0$ and $a^2 + b^2 = c^2$.

$$
\begin{aligned}
x^2 + y^2 &= z^2 \\
x^3 + y^3 &= z^3
\end{aligned}
\frac{\alpha + \beta}{\sqrt{\gamma}} = \sum_{i=1}^{n} i^2
$$

## Markers

It also catches markers inside inline `code` and fenced blocks:

```rust
fn render() {
// TODO: cache the parsed AST between frames
// FIXME: handle empty input without a panic
}
```

This is final paragraph, it includes a code block and a list of items.

### Custom components
Expand All @@ -273,3 +279,15 @@ button:
<UserCard id="huacnlee" />

<UserCard id="madcodelife" />

## Task markers

The custom `MarkerHighlighter` (an LSP-style semantic tokens provider)
highlights these markers in the source editor on the left, each in a
different color:

- TODO: support nested task lists
- FIXME: links with parentheses break parsing
- XXX: revisit the table column-width heuristic
- HACK: temporary workaround for footnote ordering
- NOTE: math blocks require the `$$` fence
Loading
Loading