voidcannon: support resolving content-id based links

This commit is contained in:
bignutty
2025-10-22 16:41:39 +02:00
parent 2545154d4c
commit b42133765e
4 changed files with 26 additions and 8 deletions

View File

@@ -2,7 +2,12 @@
this is sample text (p3)
[playground](./playground) [playground-partial](./playground-partial) [p3](./playground-p3) [totk](./playground-totk)
## Test Articles
- [playground](./[playground])
- - [playground (partially themed)](./[playground-partial])
- - [playground (no theme)](./[playground-gm3])
- [p3](./[playground-p3])
- [totk](./[playground-totk])
## Custom Emoji :p3smile:

View File

@@ -2,7 +2,12 @@
this is sample text (totk)
[playground](./playground) [playground-partial](./playground-partial) [p3](./playground-p3) [totk](./playground-totk)
## Test Articles
- [playground](./[playground])
- - [playground (partially themed)](./[playground-partial])
- - [playground (no theme)](./[playground-gm3])
- [p3](./[playground-p3])
- [totk](./[playground-totk])
```javascript
console.log('hewwo') // [!code --]

View File

@@ -3,11 +3,11 @@
this is sample text (playground)
## Test Articles
- [playground](./playground-test-article)
- - [playground (partially themed)](./playground-test-article-partial)
- - [playground (no theme)](./playground-test-article-gm3)
- [p3](./playground-p3-test-article)
- [totk](./playground-totk-test-article)
- [playground](./[playground])
- - [playground (partially themed)](./[playground-partial])
- - [playground (no theme)](./[playground-gm3])
- [p3](./[playground-p3])
- [totk](./[playground-totk])
<voidcannon-theme-switcher></voidcannon-theme-switcher>
@@ -220,6 +220,14 @@ Custom emoji (Persona 3 Reload)
* [Link with title](https://www.example.com "Example.com")
* <https://www.example.com> (Autolink)
Voidcannon can also resolve content ID based links to their respective slugs:
```md
[Playground Article](./[playground] "Example")
```
* [Playground Article](./[playground] "Example")
## Images
The custom `<voidcannon-harness>` element can be used to render full-width sections.