changed git call from https to git readonly
[atutor.git] / mods / wiki / plugins / old / markup_paragraphs.php
1 <?php
2
3 /*
4
5   this plugin makes ewiki mimic the (more text paragraph oriented)
6   markup style of newer PhpWiki versions
7   * text style triggers (bold or italic) work over multiple lines
8   * some markup (lists) can be continued after line breaks
9
10 */
11
12
13
14 $ewiki_plugins["format_source"][] = "ewiki_format_text_in_paragraphs";
15
16
17 function ewiki_format_text_in_paragraphs(&$wiki_source) {
18
19    $wiki_source = preg_replace('/(?<!\n)\n([^-!*#\t;: \n])/', ' $1', $wiki_source);
20
21 }
22
23
24
25 ?>