renderers/page-renderer~ PageRenderer

Render pages to html

Constructor

new PageRenderer(param0, pageRefs)

Parameters:
NameTypeDescription
param0object

config

pageRefsobject

An object with keys the page path and value the page title

Methods

Parameters:
NameTypeDescription
pageLocalPage

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:
NameTypeDescription
pageLocalPage

The page to render as html

Returns:

The page with its html and attachments attributes populated