Skip to content

pantoken-root / plugins/typedoc/demo/src / toDemoFence

Fonksiyon: toDemoFence() ​

toDemoFence(spec): string

Beta

Bir demo spesifikasyonunu çitlenmiş demo bloğuna sarın.

Parametreler ​

spec ​

string

A demo spec: a bare URL or a <provider>:<ref> pair.

Döndürür ​

string

Çitlenmiş kod bloğu bir dize olarak.

Örnek ​

ts
import { toDemoFence } from "@pantoken/typedoc-plugin-demo";

toDemoFence("stackblitz:abc123"); // "```demo\nstackblitz:abc123\n```"