Skip to content

pantoken / tools/demo/src / LiveExampleOptions

इंटरफेस: LiveExampleOptions

कैसे मिलान करने वाले पृष्ठों पर प्रत्येक @example HTML फेंस पर लाइव प्रीव्यू जोड़ना।

प्रॉपर्टीज

match

match: (relativePath) => boolean

केवल उन पृष्ठों पर फेंस को रैप करें जिनका markdown-it env.relativePath मेल खाता है (उदा. CSS-API पृष्ठ)।

पैरामीटर

relativePath

string

वापसी

boolean


wrap

wrap: (html, flags, relativePath) => string

प्रत्येक non-overlay html फेंस के बाद जुड़े हुए प्रीव्यू ब्लॉक को उसके मार्कअप, फेंस इन्फो स्ट्रिंग से पार्स किए गए किसी भी -flag टोकन, और पृष्ठ के env.relativePath (locale/direction लुकअप के लिए) से बनाएं।

पैरामीटर

html

string

flags

Set<string>

relativePath

string

वापसी

string