Fix filter extension example in the README

A filter language extension needs the filter key, or it's not valid javascript syntax.
This commit is contained in:
Edward Anderson 2013-07-06 17:12:25 -04:00
parent c3a88c8fee
commit a489b23f31

View File

@ -256,7 +256,7 @@ Alternately, if you'd just like to do everything yourself, you can specify a fil
var demo = function(converter) {
return [
// Replace escaped @ symbols
{ type: 'lang', function(text) {
{ type: 'lang', filter: function(text) {
return text.replace(/\\@/g, '@');
}}
];