Media
音声と動画:media
音声と動画の添付ファイルは、ブラウザ標準のプレイヤーで再生できます。次の例は短い無音の WAV です。
ソース
![[media-example.wav]]
実行例
Attachments:attachment
通常の WikiLink はダウンロードリンクに、埋め込み WikiLink は添付カードになります。
ソース
[[attachment-example.txt]]
![[attachment-example.txt]]
実行例
This text file is used by the Attachment plugin documentation.
PDF:pdf
埋め込んだ PDF はブラウザ標準の PDF ビューアで表示されます。
ソース
![[pdf-example.pdf]]
実行例
Rich embeds:rich-embed
URL を YouTube、Vimeo、Spotify、CodePen、Gist などの埋め込みに変換します。
ソース
```embed
https://www.youtube.com/watch?v=dQw4w9WgXcQ
title: Demo video
caption: A short caption
aspect: 16/9
```
実行例
Gallery cards:gallery
ソース
```gallery
columns: 3
items:
- title: Default
description: A clean, typographic theme.
href: https://riebeckite.dev/docs/themes/default
- title: Minimal
description: Stripped back to the essentials.
href: https://riebeckite.dev/docs/themes/minimal
- title: Gruvbox
description: A warm, high-contrast palette.
href: https://riebeckite.dev/docs/themes/gruvbox
```
実行例
Excalidraw:excalidraw
Excalidraw 形式のノートを埋め込むと、ブラウザ上で SVG に置き換わります。このサイトでは assets/HW.md の図を埋め込んでいます。
ソース
![[HW]]
実行例
Responsive image:responsive-image
画像を ![[...]] で埋め込むと、対応する候補画像があれば <picture> と複数サイズの候補に展開されます。
ソース
![[riebeckite-logo-horizontal.png]]
実行例
Lightbox:lightbox
画像をクリックすると、アクセシブルなダイアログで拡大表示されます。
ソース
![[riebeckite-logo.png]]
実行例
AutoCardLink:autocardlink
cardlink フェンスに URL とメタ情報を書くと、リンクカードになります。
ソース
```cardlink
url: https://example.com/riebeckite
title: Riebeckite
description: Markdown から静的サイトを作るツール
host: example.com
```
実行例
画像比較:image-compare
image-compare フェンスは 2 枚の画像をドラッグ可能な境界で比較します。JavaScript がない場合も Before / After ラベル付きで両方の画像を表示します。
ソース
```image-compare
---
before: ../../../assets/themes/theme-default-light.png
after: ../../../assets/themes/theme-default-dark.png
beforeAlt: ライトモードの Default テーマ
afterAlt: ダークモードの Default テーマ
label: Default テーマのライト表示とダーク表示
---
```
表示
Before
After

Powered by Riebeckite

