Docute Iframe
Description
A docute plugin to run code in docs with an iframe.
Installation
This entry records only its repository, not the path inside it, so there is no
exact command to give. Open the source below and copy the folder into
~/.claude/skills/, or the file into ~/.claude/agents/.
README
docute-iframe
[](https://npmjs.com/package/docute-iframe) [](https://npmjs.com/package/docute-iframe) [](https://circleci.com/gh/egoist/docute-iframe) [](https://github.com/egoist/donate)
A docute plugin to run code in docs with an iframe.
Usage
*This plugin requires docute^2.9.0*
Include the scripts before running `docute.init`:
Then activate the plugin:
docute.init({
plugins: [
docuteIframe()
]
})
Finally, you can write some fancy code examples which are `runnable`:
This is a **markdown** file, here it to demonstrate some code:
````html
document.getElementById('example').innerHTML = 'it works'
````
**Note:** It's similar to gfm code blocks, which use triple backticks, but here you need to use **4 backticks** to mark it as runnable code while still have syntax highlight in your editor.
If the `language` of code block is `js` or `javascript`, it will be automatically wrapped in `` tag and inserted into iframe body, you can [customize it](#parsecontent) though.
API
docuteIframe([options])
options
match
Type: `RegExp`
Default: /^\`{4}(.\*?)[\n\r]+([\s\S]\*?)[\n\r]+\`{4}/gm
The regular expression we use to find runnable code.
showSourceCode
Type: `boolean`
Default: `true`
Show highlighted source code before iframe.
prepend
Type: `string`
Prepend string to iframe body, eg:
docuteIframe({
prepend: ''
})
Related Skills
Auto Update
Pull the latest ECC repo changes and reinstall the current managed targets.
Development Ecc Guide
Navigate ECC's current agents, skills, commands, hooks, install profiles, and docs from the live repository su
Development Epic Claim
Claim an epic issue, stamp coordination state, and sync local ownership.
Development Epic Publish
Publish a validated epic update back to the issue and local cache.
Development Epic Review
Mark epic review requested, approved, or changes requested.
Development Epic Unblock
Sweep blocked epic issues and reopen anything whose dependencies are closed.
Development Related Agents
Django Build Resolver
Django/Python build, migration, and dependency error resolution specialist. Fixes pip/Poetry errors, migration
Openai Codex CLI
(55.8k ⭐) - Lightweight coding agent that runs in your terminal.
src/agents/ — 11 Agent Definitions
**Generated:** 2026-04-11