Skip to content

pantoken / tools/demo/src / LiveExampleOptions

Interface: LiveExampleOptions

How to seam a live preview onto each @example HTML fence on matching pages.

Properties

match

match: (relativePath) => boolean

Only wrap fences on pages whose markdown-it env.relativePath matches (e.g. the CSS-API pages).

Parameters

relativePath

string

Returns

boolean


wrap

wrap: (html) => string

Build the preview block appended after each non-overlay html fence, from its markup.

Parameters

html

string

Returns

string