Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions extension/background.js
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,7 @@ CreateLink.prototype.formatLinkText = function (formatId, url, text, title, tabI
var def = this.format(formatId);
var data = def.format.
replace(/%url%/g, url).
replace(/%decoded_url%/g, decodeURIComponent(url)).
replace(/%text%/g, text.replace(/\n/g, ' ')).
replace(/%text_n%/g, text).
replace(/%text_br%/g, text.replace(/\n/g, '<br />\n')).
Expand Down
4 changes: 4 additions & 0 deletions extension/options.html
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,10 @@ <h2>Variables</h2>
Create Link recognizes some <a href="https://addons.mozilla.org/en/firefox/addon/142">Make Link</a> compatible variables.
</div>
<dl id="variables">
<dt>%url%</dt>
<dd>Url of current tab.</dd>
<dt>%decoded_url%</dt>
<dd>Decoded %url%.</dd>
<dt>%text%</dt>
<dd>Selected text or page title. All newlines are converted to " ".</dd>
<dt>%text_n%</dt>
Expand Down