mirror of
https://github.com/showdownjs/showdown.git
synced 2024-03-22 13:30:55 +08:00
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:
parent
c3a88c8fee
commit
a489b23f31
|
@ -256,7 +256,7 @@ Alternately, if you'd just like to do everything yourself, you can specify a fil
|
||||||
var demo = function(converter) {
|
var demo = function(converter) {
|
||||||
return [
|
return [
|
||||||
// Replace escaped @ symbols
|
// Replace escaped @ symbols
|
||||||
{ type: 'lang', function(text) {
|
{ type: 'lang', filter: function(text) {
|
||||||
return text.replace(/\\@/g, '@');
|
return text.replace(/\\@/g, '@');
|
||||||
}}
|
}}
|
||||||
];
|
];
|
||||||
|
|
Loading…
Reference in New Issue
Block a user