Skip to content

Conversation

Rich-Harris
Copy link
Member

#1587 introduced a bad regex — we need the ? to make the pattern non-greedy. Without it, we're missing headings — https://svelte.dev/docs/kit/load currently looks like this...

image

...when it should look like this:

image

I also changed the hard-coded three backticks to a minimum of three, so that we can potentially do this sort of thing in future:

````md
this is a code fence:

```js
console.log('woooo!');
```
````

Copy link

vercel bot commented Oct 4, 2025

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Preview Updated (UTC)
svelte-dev Ready Ready Preview Oct 4, 2025 11:26pm

@Rich-Harris Rich-Harris merged commit fd57be1 into main Oct 4, 2025
2 checks passed
@Rich-Harris Rich-Harris deleted the fix-headings branch October 4, 2025 23:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant