This function renders the passed data in PBwiki format and returns the HTML that would be rendered by the PBwiki service. The rendered HTML does not include any page dressing, such as the UI. This may be useful as a "preview" function to let a user see how a page would look before actually saving the page. This function is mildly computationally expensive for us, so we ask you to please not abuse it with many calls per second.
data Required
The data that you would like to render in PBwiki markup format, documented at http://yummy.pbwiki.com/WikiStyle - this parameter may be given either as a GET parameter (for testing) or the entirety of the POST content. It is recommended you use POST mechanism for production use due to the limitation on the size of URLs. You may not attempt to render a page longer than 100KB; the function will fail with a corresponding "Too long" error.
The response will consist of the parameter "html" set to the rendered HTML data for the page. Note that this content will be JSON-escaped. In the future, other render outputs may be made available.
REQUEST
POST data
! Hello, World!
RESPONSE
{ "v1": {
"html": "<h1>Hello, World!</h1>";
}}
Page Information
|
Wiki Information
|
Recent PBwiki Blog Posts |