diff --git a/core/modules/widgets/let.js b/core/modules/widgets/let.js index afd3a2f20..dd3aa137a 100644 --- a/core/modules/widgets/let.js +++ b/core/modules/widgets/let.js @@ -74,7 +74,9 @@ LetWidget.prototype.getVariableInfo = function(name,options) { text: this.currentValueFor[name] }; } - return Widget.prototype.getVariableInfo.call(this,name,options); + return Widget.prototype.getVariableInfo.call(this,name,$tw.utils.extend(Object.create(null),options,{ + defaultValue: "" + })); }; /* diff --git a/core/templates/exporters/StaticRiver.tid b/core/templates/exporters/StaticRiver.tid index 4583bc1ce..a22cfb98a 100644 --- a/core/templates/exporters/StaticRiver.tid +++ b/core/templates/exporters/StaticRiver.tid @@ -14,6 +14,7 @@ extension: .html + {{$:/core/wiki/title}} diff --git a/plugins/tiddlywiki/markdown/config.multids b/plugins/tiddlywiki/markdown/config.multids index b19c06bf2..6d592bec3 100644 --- a/plugins/tiddlywiki/markdown/config.multids +++ b/plugins/tiddlywiki/markdown/config.multids @@ -7,5 +7,5 @@ markdown/breaks: false markdown/linkify: false markdown/quotes: “”‘’ markdown/renderWikiText: true -markdown/renderWikiTextPragma: \rules only html entity syslink prettylink wikilink commentblock commentinline macrocallblock macrocallinline transcludeblock transcludeinline filteredtranscludeblock filteredtranscludeinline +markdown/renderWikiTextPragma: \rules only html entity syslink prettylink image prettyextlink wikilink commentblock commentinline macrocallblock macrocallinline transcludeblock transcludeinline filteredtranscludeblock filteredtranscludeinline markdown/typographer: false \ No newline at end of file diff --git a/plugins/tiddlywiki/markdown/markdown-it-tiddlywiki.js b/plugins/tiddlywiki/markdown/markdown-it-tiddlywiki.js index 03518d850..7870cb8c4 100644 --- a/plugins/tiddlywiki/markdown/markdown-it-tiddlywiki.js +++ b/plugins/tiddlywiki/markdown/markdown-it-tiddlywiki.js @@ -103,8 +103,9 @@ function render_tw_expr(tokens,idx) { return tokens[idx].content; } -// Overwrite default: render attribute strings in e"..." format instead, -// so HTML entities can be decoded. See parseStringLiteralExt() below. +// Overwrite default: attribute values can be either a string or {type;, value:}. +// 1) string attr val: render in e"..." format so HTML entities can be decoded. +// 2) object attr val: render value as is. function render_token_attrs(token) { var i, l, result; @@ -113,7 +114,11 @@ function render_token_attrs(token) { result = ''; for(i=0, l=token.attrs.length; i