mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2025-11-14 22:37:13 +00:00
Revert "Merge pull request #1509 from welford/static_export_macro"
This reverts commitb2b8006b58, reversing changes made toe7e16137b2. @welford my apologies it turns out there are a couple of problems, I’ll comment more on the pull request
This commit is contained in:
@@ -76,7 +76,7 @@ LinkWidget.prototype.renderLink = function(parent,nextSibling) {
|
||||
var wikiLinkTemplateMacro = this.getVariable("tv-wikilink-template"),
|
||||
wikiLinkTemplate = wikiLinkTemplateMacro ? wikiLinkTemplateMacro.trim() : "#$uri_encoded$",
|
||||
wikiLinkText = wikiLinkTemplate.replace("$uri_encoded$",encodeURIComponent(this.to));
|
||||
wikiLinkText = this.getVariable("tv-get-export-link",{params: [{name: "to",value: this.to}],defaultValue: this.to}) || wikiLinkText.replace("$uri_doubleencoded$",encodeURIComponent(encodeURIComponent(this.to)));
|
||||
wikiLinkText = wikiLinkText.replace("$uri_doubleencoded$",encodeURIComponent(encodeURIComponent(this.to)));
|
||||
domNode.setAttribute("href",wikiLinkText);
|
||||
// Set the tooltip
|
||||
// HACK: Performance issues with re-parsing the tooltip prevent us defaulting the tooltip to "<$transclude field='tooltip'><$transclude field='title'/></$transclude>"
|
||||
|
||||
Reference in New Issue
Block a user