f
findScriptPlaceholder(html: string): string | undefined
Returns the explicit {{qunitxScript}} placeholder when it exists in the template.
f
injectScript(): string
html: string,
content: string
Injects the qunitx runner script block into a dynamic HTML template.
f
isCustomTemplate(html: string): boolean
Reports whether an HTML template looks dynamic enough to act as a custom runner template.
Usage
import * as mod from "lib/utils/html.ts";