docframe
v0.0.17
Published
preview html documents in iframes
Downloads
20
Readme
docframe
Preview html documents provided by url
Usage
- The content has to be url encoded.
Use
encodeURIComponent
in 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 |