Constructor
new PageRenderer(param0, pageRefs)
Parameters:
Name | Type | Description |
---|---|---|
param0 | object | config |
pageRefs | object | An object with keys the page path and value the page title |
Methods
footer(page)
Parameters:
Name | Type | Description |
---|---|---|
page | LocalPage | The page to create a footer for |
Returns:
Html markup with a link to open the markdown source on GitHub
render(page)
Renders the markdown file represented by page
as html
Parameters:
Name | Type | Description |
---|---|---|
page | LocalPage | The page to render as html |
Returns:
The page
with its html
and attachments
attributes populated