Steve Bennett wrote:
As an experiment, I added support for // and **:
Replace:
$outtext .= $this->doQuotes ( $line ) . "\n";
with:
$line = $this->doQuotes ($line); $line = preg_replace("///(.*?)///", "<I>$1</I>", $line); $line = preg_replace("/**(.*?)**/", "<B>$1</B>", $line); $outtext .= $line . "\n"; --
Whoever came up with '' / ''' made a *lot* of work for themselves.
Steve PS In that implementation, //mismatching **bold//and** italics seems to work ok. But the output is not correct HTML...
Then it's wrong. You see it "working" just because your browser html parser is better than your syntax parser. Try sending the pages as strict xhtml. ;)