summaryrefslogtreecommitdiff
path: root/lib/VNWeb/Misc/BBCode.pm
blob: 643ccbc4a7d023b9f5d7661251d653dc1ffa23c1 (plain)
1
2
3
4
5
6
7
8
9
package VNWeb::Misc::BBCode;

use VNWeb::Prelude;

json_api qr{/js/bbcode\.json}, {
    content => { required => 0, default => '' }
}, sub {
    elm_Content bb2html bb_subst_links shift->{content};
};