Something went wrong. Try again.
Large file storage for AT Protocol: an IPFS server & gateway with XRPC upload & admin. atfs.dev
Something went wrong. Try again.
123456789101112131415161718192021222324252627282930313233343536<!-- The platform-toggle content boundary, used directly inside markdown — NOT remark-directive's `:::sbc` container-directive syntax. That syntax needs to extend mdsvex's own tokenizer before parsing runs, and mdsvex doesn't give a remarkPlugin that chance (confirmed: pngwn/MDsveX#533, "remark-directive does not work" — reproduced locally, same symptom, before this component replaced it). A real Svelte component sidesteps the whole problem: mdsvex parses a component's children as ordinary markdown (this is its actual, documented, working mechanism for embedding structured content), so this needs no plugin at all.
Usage — a blank line immediately inside each tag is required, or the content is read as a single inline HTML blob instead of markdown:
<script> import PlatformBlock from "$lib/docs/PlatformBlock.svelte"; </script>
<PlatformBlock platform="sbc">
Edit `config/env/ATFS_OWNER_DID` on the card.
</PlatformBlock>
See CLAUDE.md's docs-conventions bullet.--><script lang="ts"> import type { Snippet } from "svelte";
let { platform, children }: { platform: "sbc" | "docker"; children: Snippet } = $props();</script>
<div class="platform-block" data-platform={platform}> {@render children()}</div>