Members
attachmentFiles :Array.<string>
Array of rendered attachment files
Type:
- Array.<string>
- Source
attachments :Array.<Attachment>
Attachments on this page
Type:
- Array.<Attachment>
- Source
html :string
Html markup
Type:
- string
- Source
parentPageId :number
The id of the parent confluence page
Type:
- number
- Source
Methods
loadMarkdown() → {string}
Loads the markdown file from this.meta.path
- Source
Returns:
The contents of the markdown file
- Type:
- string
(async) render(renderer) → {LocalPage}
Render the markdown of this page and attachments, using the provided renderer
Parameters:
| Name | Type | Description |
|---|---|---|
renderer | AssetRenderer | an |
- Source
Returns:
this with html and attachments populated
- Type:
- LocalPage
(async) renderAttachments(renderer)
Render attachments of this page
Parameters:
| Name | Type | Description |
|---|---|---|
renderer | AssetRenderer | an |
- Source
(async) sync(renderer, confluence) → {Promise.<RemotePage>}
Render and create this page to Confluence, including any attachments
Parameters:
| Name | Type | Description |
|---|---|---|
renderer | AssetRenderer | an |
confluence | ConfluenceSdk | ConfluenceSdk instance to use for syncing |
- Source
Returns:
The RemotePage created
- Type:
- Promise.<RemotePage>