From 0da3ad3b9ab13dc7a1fb666ee40573b146101eb0 Mon Sep 17 00:00:00 2001 From: Scott Rhamy Date: Thu, 1 Jan 2026 07:48:02 -0500 Subject: [PATCH 1/2] waiting for tools fix --- docs/src/routes/docs/markdown/+page.md | 170 ++++++++++++++++++++----- 1 file changed, 137 insertions(+), 33 deletions(-) diff --git a/docs/src/routes/docs/markdown/+page.md b/docs/src/routes/docs/markdown/+page.md index 9c0d09979..9c6fcf28c 100644 --- a/docs/src/routes/docs/markdown/+page.md +++ b/docs/src/routes/docs/markdown/+page.md @@ -1,6 +1,10 @@ # Docs features -## Syntax highlighting +## Syntax highlighting inline code + +:::note +Supported props: `title`, `live`, `diff`, `showLineNumbers`, Line highlighting `{12,15-16}` (see below for individual examples) +::: ````md ```svelte @@ -43,7 +47,6 @@ ### Diff ````md - ```svelte diff @@ -124,6 +123,7 @@ Clicked {count} {count === 1 ? 'time' : 'times'} ``` +```` ```svelte live title="Counter.svelte" + +{a} +``` + +::: + +:::tab{label="B"} + +```svelte live + + +{b} +``` + +::: + +:: +```` ::tabs @@ -359,12 +411,64 @@ print('Hello from Python') ### Icons (Inline) +You can also use icons inline with the `:icon` directive: + +:::note +Icons support both formats: `collection:name` (like `lucide:code`) or `i-collection-name` (like `i-lucide-code`). +::: + ```md -Here's a :icon{name="lucide:code" class="text-primary"} code icon, a :icon{name="lucide:rocket" class="text-green-500"} rocket, and a :icon{name="simple-icons:github"} GitHub logo. +Here's a :icon{name="lucide:code" class="text-primary"} code icon, +a :icon{name="i-lucide-rocket" class="text-green-500"} rocket, and +a :icon{name="simple-icons:github"} GitHub logo. ``` -You can also use icons inline with the `:icon` directive: +Here's a :icon{name="lucide:code" class="text-primary"} code icon,a :icon{name="i-lucide-rocket" class="text-green-500"} rocket, and a :icon{name="simple-icons:github"} GitHub logo. -Here's a :icon{name="lucide:code" class="text-primary"} code icon,a :icon{name="lucide:rocket" class="text-green-500"} rocket, and a :icon{name="simple-icons:github"} GitHub logo. +### Links -Icons support both formats: `collection:name` (like `lucide:code`) or `i-collection-name` (like `i-lucide-code`). +#### On domain + +:::note +opens same tab, no arrow icon +::: + +````md +[Getting Started](/docs/getting-started) +```` + +[Getting Started](/docs/getting-started) + +### External + +:::note +opens new tab, note arrow icon +::: + +````md +[LayerStack](https://www.layerstack.com) +```` + +[LayerStack](https://www.layerstack.com) + +### Internal (Hash-links or Fragment links) + +:::note +Hash-links in `md` files are auto-created from headers. Reference via lowercase and kebab-case +::: + +````md +# Docs Features +... +[Top](#docs-features) +```` + +[Top](#docs-features) + +also can manually add hash icon + +````md +[:icon{name="lucide:hash"}Top](#docs-features) +```` + +[:icon{name="lucide:hash"}Top](#docs-features) From d561c662fcee365103f6f82b8f6fa8c38cd1c2f3 Mon Sep 17 00:00:00 2001 From: Scott Rhamy Date: Thu, 1 Jan 2026 18:53:36 -0500 Subject: [PATCH 2/2] more-markdown-examples --- docs/src/routes/docs/markdown/+page.md | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/docs/src/routes/docs/markdown/+page.md b/docs/src/routes/docs/markdown/+page.md index 9c6fcf28c..eeb7fabbe 100644 --- a/docs/src/routes/docs/markdown/+page.md +++ b/docs/src/routes/docs/markdown/+page.md @@ -158,14 +158,15 @@ Supported props w/defaults noResize=false, clip=false, variant:'default' | 'basic', + highlight:string (ie "7", "7-9") class:string ::: ```md -:example{component="LineChart" name="basic" showCode} +:example{component="LineChart" name="basic" hightlight="9" showCode} ``` -:example{component="LineChart" name="basic" showCode} +:example{component="LineChart" name="basic" highlight="9" showCode} ## Table