pantoken / tools/demo/src / DemoMarkdownItOptions
Interface: DemoMarkdownItOptions
Options for demoMarkdownIt: the resolveDemo fields plus optional live-example seaming.
Extends
Properties
base?
optionalbase?:string
Site base path, e.g. /pantoken/ (default /).
Inherited from
runnerPath?
optionalrunnerPath?:string
Runner page path, relative to base (default play/index.html).
Inherited from
demosPath?
optionaldemosPath?:string
Self-hosted demo-source dir, relative to base (default demos/).
Inherited from
cssUrls?
optionalcssUrls?: readonlystring[]
Stylesheet URLs the runner injects (into its chrome and every rendered result): the component sheets, the multi-theme token sheet, and the plugin/surface sheets. The runner themes by toggling the data-pantoken-theme attribute, so one token sheet covers every theme.
Inherited from
liveExample?
optionalliveExample?:LiveExampleOptions
When set, appends a live preview after each html fence on matching pages — the same markup, rendered live, beneath its source. Overlay examples (<dialog>, [popover]) are skipped: they're hidden until opened, so a ## Demo iframe drives their preview instead.