Back to Prosemirror

Example

templates/example.html

latest319 B
Original Source

> < { return "javascript\n" + getPart(id) + "" }).replace(/\n@HTML(:\w+)?\n/g, (_, id) => { let html = readFileSync(htmlFile, "utf8") if (!id) return html let found = new RegExp("\n([^]*?)\n").exec(html) if (!found) throw new Error("Unknown example code part " + id.slice(1)) return found[1] }) >> <><>