Methods

(inner) confluenceLinkClose() → {string}

Closing markup for confluence link

Returns:

Html markup

Type: 
string

(inner) confluenceLinkOpen(title) → {string}

Opening markup for confluence link

Parameters:
NameTypeDescription
titlestring

Page title

Returns:

Html markup

Type: 
string

(inner) isLocal(href) → {string}

Parameters:
NameTypeDescription
hrefstring

The href attribute of an image token

Returns:

true if the href does not start with http

Type: 
string

(inner) localPage(tokens, idx, param2, md) → {string|undefined}

Lookup the title of the page the link token refers by path

Parameters:
NameTypeDescription
tokensArray.<Token>

Array of parsed tokens

idxnumber

Current token index

param2object

Parser env object

mdMarkdownIt

A MarkdownIt instance

Returns:

The title of the page if exists in pageRefs

Type: 
string | undefined

(inner) plugin(md)

MarkdownIt plugin to handle links

Parameters:
NameTypeDescription
mdMarkdownIt

A MarkdownIt instance