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

use VNWeb::Prelude;

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