Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
describe("Bespoke template's browser context", () => {
const marp = new Marp({
container: new MarpitElement('div', { id: 'p' }),
})
const defaultMarkdown = '# 1\n\n---\n\n## 2\n\n---\n\n### 3'
const render = (
md = defaultMarkdown,
targetDocument = document
): HTMLElement => {
targetDocument.body.innerHTML = marp.render(md).html
return targetDocument.getElementById('p')!
}
const replaceLocation = >(
path: string,
action: () => T