Skip to content

pantoken / plugins/typedoc/demo/src / toDemoFence

फंक्शन: toDemoFence()

toDemoFence(spec): string

बीटा

एक डेमो स्पेक को एक फ़ेन्स्ड demo ब्लॉक में लपेटें।

पैरामीटर

spec

string

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

वापसी

string

फ़ेन्स्ड कोड ब्लॉक को एक स्ट्रिंग के रूप में।

उदाहरण

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

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