docframe
v0.0.17
Published
preview html documents in iframes
Readme
docframe
Preview html documents provided by url
Usage
- The content has to be url encoded.
Use
encodeURIComponentin javascript to encode the content. - References inside the display document must be absolute (don't use
./or/)
API
| Endpoints | Description |
| :----------------------------------- | :---------------------------------- |
| #html=[encodeURIComponent(string)] | Displays a HTML string |
| #htmlurl=[encodeURIComponent(url)] | Displays a HTML document by url |
| #md=[encodeURIComponent(string)] | Displays a markdown string |
| #mdurl=[encodeURIComponent(url)] | Displays a markdown document by url |
