diff --git a/docs/client/api.html b/docs/client/api.html index 7e4b19b8f5..05b44533ab 100644 --- a/docs/client/api.html +++ b/docs/client/api.html @@ -1,5 +1,5 @@ @@ -3040,7 +3040,7 @@ code can read `data.txt` by running:
-{{#each descr}}{{#better_markdown}}{{{this}}}{{/better_markdown}}{{/each}} +{{#each descr}}{{#markdown}}{{{this}}}{{/markdown}}{{/each}}
{{#if args}} @@ -3054,7 +3054,7 @@ code can read `data.txt` by running: {{/if}} {{#if content}} -{{#better_markdown}}{{> content}}{{/better_markdown}} +{{#markdown}}{{> content}}{{/markdown}} {{/if}} @@ -3074,7 +3074,7 @@ code can read `data.txt` by running: {{{type}}} {{/if}} -
{{#better_markdown}}{{{descr}}}{{/better_markdown}}
+
{{#markdown}}{{{descr}}}{{/markdown}}
{{/each}} diff --git a/docs/client/commandline.html b/docs/client/commandline.html index e14a342b9d..fb642598e6 100644 --- a/docs/client/commandline.html +++ b/docs/client/commandline.html @@ -1,6 +1,6 @@ diff --git a/docs/client/concepts.html b/docs/client/concepts.html index 4dde25943c..b76bfebe8d 100644 --- a/docs/client/concepts.html +++ b/docs/client/concepts.html @@ -21,7 +21,7 @@ when writing those apps. diff --git a/docs/client/docs.html b/docs/client/docs.html index eed9a7dfc3..33f870b00f 100644 --- a/docs/client/docs.html +++ b/docs/client/docs.html @@ -22,10 +22,6 @@ - - diff --git a/docs/client/introduction.html b/docs/client/introduction.html index 93ef7e6917..7783fe4024 100644 --- a/docs/client/introduction.html +++ b/docs/client/introduction.html @@ -4,7 +4,7 @@ not here --> -{{#better_markdown}} +{{#markdown}} _Meteor is an ultra-simple environment for building modern websites. What once took weeks, even with the best tools, now takes hours with @@ -132,6 +132,6 @@ with the project!
The core code is on GitHub. If you're able to write code or file issues, we'd love to have your help. Please read Contributing to Meteor for how to get started. -{{/better_markdown}} +{{/markdown}} diff --git a/docs/client/packages.html b/docs/client/packages.html index 077e4f1cd1..e1b79538e7 100644 --- a/docs/client/packages.html +++ b/docs/client/packages.html @@ -1,5 +1,5 @@ diff --git a/docs/client/packages/accounts-ui.html b/docs/client/packages/accounts-ui.html index 6d48560dc7..c2db87b180 100644 --- a/docs/client/packages/accounts-ui.html +++ b/docs/client/packages/accounts-ui.html @@ -1,5 +1,5 @@ diff --git a/docs/client/packages/amplify.html b/docs/client/packages/amplify.html index 38c50e6cf4..9e6e414c7c 100644 --- a/docs/client/packages/amplify.html +++ b/docs/client/packages/amplify.html @@ -1,5 +1,5 @@ diff --git a/docs/client/packages/appcache.html b/docs/client/packages/appcache.html index 4f2885b189..35fdf3b7aa 100644 --- a/docs/client/packages/appcache.html +++ b/docs/client/packages/appcache.html @@ -1,5 +1,5 @@ diff --git a/docs/client/packages/audit-argument-checks.html b/docs/client/packages/audit-argument-checks.html index d2b311d927..d07d8e971d 100644 --- a/docs/client/packages/audit-argument-checks.html +++ b/docs/client/packages/audit-argument-checks.html @@ -1,5 +1,5 @@ diff --git a/docs/client/packages/backbone.html b/docs/client/packages/backbone.html index ab9d2d74d0..52397a2808 100644 --- a/docs/client/packages/backbone.html +++ b/docs/client/packages/backbone.html @@ -1,5 +1,5 @@ diff --git a/docs/client/packages/bootstrap.html b/docs/client/packages/bootstrap.html index 9a017829a3..1d813fdbdb 100644 --- a/docs/client/packages/bootstrap.html +++ b/docs/client/packages/bootstrap.html @@ -1,5 +1,5 @@ diff --git a/docs/client/packages/browser-policy.html b/docs/client/packages/browser-policy.html index cc46e01f3a..2b5f8c2358 100644 --- a/docs/client/packages/browser-policy.html +++ b/docs/client/packages/browser-policy.html @@ -1,5 +1,5 @@ diff --git a/docs/client/packages/coffeescript.html b/docs/client/packages/coffeescript.html index d01284cf4f..8e8fcc3038 100644 --- a/docs/client/packages/coffeescript.html +++ b/docs/client/packages/coffeescript.html @@ -1,5 +1,5 @@ diff --git a/docs/client/packages/d3.html b/docs/client/packages/d3.html index f361fa27c8..ca999a697d 100644 --- a/docs/client/packages/d3.html +++ b/docs/client/packages/d3.html @@ -1,5 +1,5 @@ diff --git a/docs/client/packages/force-ssl.html b/docs/client/packages/force-ssl.html index 07e4bb09eb..e5c96df358 100644 --- a/docs/client/packages/force-ssl.html +++ b/docs/client/packages/force-ssl.html @@ -1,5 +1,5 @@ diff --git a/docs/client/packages/jquery.html b/docs/client/packages/jquery.html index b7998a3155..37958d9b23 100644 --- a/docs/client/packages/jquery.html +++ b/docs/client/packages/jquery.html @@ -1,5 +1,5 @@ diff --git a/docs/client/packages/less.html b/docs/client/packages/less.html index da5145b03d..9067515a39 100644 --- a/docs/client/packages/less.html +++ b/docs/client/packages/less.html @@ -1,5 +1,5 @@ diff --git a/docs/client/packages/random.html b/docs/client/packages/random.html index 72c7ce9f51..a9684035f4 100644 --- a/docs/client/packages/random.html +++ b/docs/client/packages/random.html @@ -1,5 +1,5 @@ diff --git a/docs/client/packages/spiderable.html b/docs/client/packages/spiderable.html index 3bd785c4d4..9afade0eac 100644 --- a/docs/client/packages/spiderable.html +++ b/docs/client/packages/spiderable.html @@ -1,5 +1,5 @@ diff --git a/docs/client/packages/stylus.html b/docs/client/packages/stylus.html index 7d3a217028..ed68a146b6 100644 --- a/docs/client/packages/stylus.html +++ b/docs/client/packages/stylus.html @@ -1,5 +1,5 @@ diff --git a/docs/client/packages/underscore.html b/docs/client/packages/underscore.html index bad129e09d..7302679937 100644 --- a/docs/client/packages/underscore.html +++ b/docs/client/packages/underscore.html @@ -1,5 +1,5 @@ diff --git a/packages/htmljs/tohtml.js b/packages/htmljs/tohtml.js index 28fc0a9e3c..b238994d9d 100644 --- a/packages/htmljs/tohtml.js +++ b/packages/htmljs/tohtml.js @@ -132,6 +132,18 @@ HTML.toText = function (node, textMode, parentComponent) { }; +HTML.Raw.prototype.toText = function () { + return this.value; +}; + +// used when including templates within {{#markdown}} +HTML.Tag.prototype.toText = function (textMode) { + if (textMode === HTML.TEXTMODE.STRING) + return this.toHTML(); + else + throw new Error("Can't insert tags in attributes or TEXTAREA elements"); +}; + HTML.CharRef.prototype.toText = function (textMode) { if (textMode === HTML.TEXTMODE.STRING) return this.str; diff --git a/packages/showdown/template-integration.js b/packages/showdown/template-integration.js index d5fcd5713e..b4bef234c0 100644 --- a/packages/showdown/template-integration.js +++ b/packages/showdown/template-integration.js @@ -4,7 +4,7 @@ if (Package.ui) { Package.ui.Handlebars.registerHelper('markdown', UI.block(function () { var self = this; return function () { - var text = UI.toRawText(self.__content); + var text = UI.toRawText(self.__content, self /*parentComponent*/); var converter = new Showdown.converter(); return HTML.Raw(converter.makeHtml(text)); }; diff --git a/packages/spacebars-tests/template_tests.html b/packages/spacebars-tests/template_tests.html index a9507f0bc3..a13b336e4d 100644 --- a/packages/spacebars-tests/template_tests.html +++ b/packages/spacebars-tests/template_tests.html @@ -288,7 +288,8 @@