Skip to content
This repository has been archived by the owner on Sep 6, 2022. It is now read-only.

Commit

Permalink
Deprecate (broken) server-side mardkown compilation
Browse files Browse the repository at this point in the history
We don't need server-side “filters”, this will be handled by meteor
server-side rendering.
  • Loading branch information
mquandalle committed Sep 2, 2014
1 parent bfb7115 commit 357847c
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 17 deletions.
17 changes: 0 additions & 17 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
1 change: 1 addition & 0 deletions plugin/filters.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
};

0 comments on commit 357847c

Please sign in to comment.