Skip to content

pantoken-root / tools/demo/src / LiveExampleOptions

Entèfas: LiveExampleOptions ​

Kijan pou kole yon previ an dirèk sou chak @example HTML fence sou paj ki koresponn yo.

Pwopriyete ​

match ​

match: (relativePath) => boolean

Se sèlman vlope fence sou paj kote markdown-it env.relativePath matche (eg. paj CSS-API yo).

Paramèt ​

relativePath ​

string

Retounen ​

boolean


wrap ​

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

Konstwi blòk previ a ki ajoute apre chak html fence ki pa overlay, soti nan makaj li, nenpòt -flag tokens analize nan chèn enfòmasyon fence la, ak env.relativePath paj la (pou rechèch lokal/direksyon).

Paramèt ​

html ​

string

flags ​

Set<string>

relativePath ​

string

Retounen ​

string