Skip to content

Commit

Permalink
Add an ugly kludge to ignore comments in wiki markup.
Browse files Browse the repository at this point in the history
This isn't really so ugly in the light of the rest of the code.  A real parser
would be nice.
  • Loading branch information
Vsevolod Kozlov committed May 28, 2011
1 parent 2b5261f commit c4b51f2
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions wikisophy
Expand Up @@ -59,6 +59,7 @@ sub parse_page {

$c =~ s/<ref[^>]*>[^<]+<\/ref>//gs;
$c =~ s/'{2,}[^\n]+?'{2,}//gs;
$c =~ s/<!--.*?-->//gs;

wikiparse: while (length($c)) {
if ($is_debug) {
Expand Down

0 comments on commit c4b51f2

Please sign in to comment.