Skip to content

pantoken-root / 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

各非オーバーレイ html フェンスの後に追加されるプレビューブロックを、そのマークアップ、フェンスの情報文字列から解析された任意の -flag トークン、およびページの env.relativePath(ロケール/方向の参照用)から構築する。

パラメーター ​

html ​

string

flags ​

Set<string>

relativePath ​

string

戻り値 ​

string