From 357847cd2582e9824c280d49cfb92722eddcd9b5 Mon Sep 17 00:00:00 2001 From: Maxime Quandalle Date: Tue, 2 Sep 2014 12:47:11 +0200 Subject: [PATCH] =?UTF-8?q?Deprecate=20(broken)=20server-side=20mardkown?= =?UTF-8?q?=20compilation=20We=20don't=20need=20server-side=20=E2=80=9Cfil?= =?UTF-8?q?ters=E2=80=9D,=20this=20will=20be=20handled=20by=20meteor=20ser?= =?UTF-8?q?ver-side=20rendering.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 17 ----------------- plugin/filters.js | 1 + 2 files changed, 1 insertion(+), 17 deletions(-) diff --git a/README.md b/README.md index 8f726a1..003604d 100644 --- a/README.md +++ b/README.md @@ -166,23 +166,6 @@ else Under the hood, those two codes are compiled to the same abstract tree, so there are no runtime performance hit. -### Server-side filters - -It is possible to use server-side filters in order to use a specific compiler -for a particular block. For now `:markdown` is the only filter supported. - -```jade -body - :markdown - # I love writing my docs in markdown - - * Let's compile this text on the server - * So the client doesn't have to do it -``` - -The difference with the `+markdown` block helper is that the compilation is done -on the server, not the client. - ### Anonymous helper This one is not implemented yet but I'd like to write such kind of things: diff --git a/plugin/filters.js b/plugin/filters.js index 0786e3e..bef931c 100644 --- a/plugin/filters.js +++ b/plugin/filters.js @@ -6,6 +6,7 @@ var markdownToHTML = Npm.require("markdown").markdown.toHTML; Filters = { markdown: function (content) { + console.warn("jade: markdown server-side filter is deprecated"); return markdownToHTML(content); } };