3 # This plugin allows for the single word emphasis markup:
4 # *bold* /italic/ _underlined_
8 $ewiki_plugins["format_source"][] = "ewiki_format_single_word_emphasis";
9 function ewiki_format_single_word_emphasis(&$src) {
10 $src = preg_replace("/\B\*(\w+)\*\B/", "<b>$1</b>", $src);
11 $src = preg_replace("/\B\/(\w+)\/\B/", "<i>$1</i>", $src);
12 $src = preg_replace("/\b\_([a-zA-Z\d\300-\377]+)\_\b/", "<u>$1</u>", $src);