-
Notifications
You must be signed in to change notification settings - Fork 38
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* eslint pre-commit hook set --resolve-plugins-relative-to ~/.cache/pre-commit * add v9 note to readme Breaking changes section * fix eslint * try fix playwright test * test 'opens dropdown on focus': await page.waitForTimeout(100) * add v9 to changelog * revert to await page.waitForTimeout(100), test failing without
- Loading branch information
Showing
9 changed files
with
87 additions
and
49 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
import changelog from '$root/changelog.md?raw' | ||
import { compile } from 'mdsvex' | ||
|
||
const brace_to_paren = (str: string) => | ||
str.replaceAll(`{`, `(`).replaceAll(`}`, `)`) | ||
|
||
const backticks_to_lt_gt = (str: string) => | ||
str.replaceAll(`>`, `\`>`).replaceAll(`<`, `\`<`) | ||
|
||
const section_level = (str: string) => | ||
// turn 1st heading into h1 | ||
str.replace(`###`, `#`).replaceAll(`##`, `#`) | ||
|
||
export const load = async () => ({ | ||
changelog: compile( | ||
backticks_to_lt_gt(brace_to_paren(section_level(changelog))) | ||
), | ||
}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,11 @@ | ||
<script lang="ts"> | ||
import Changelog from '$root/changelog.md' | ||
import Toc from 'svelte-toc' | ||
export let data | ||
</script> | ||
|
||
<main> | ||
<Changelog /> | ||
{@html data.changelog?.code} | ||
</main> | ||
|
||
<Toc headingSelector="main > :where(h3, h4)" breakpoint={1250} /> | ||
<Toc breakpoint={1250} /> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters