(anonymous guest) (logged out)

Copyright (C) by the contributors. Some rights reserved, license BY-SA.

Sponsored by the Wiki Symposium and the Nuveon GmbH.

 

Add new attachment

Only authorized users are allowed to upload new attachments.

This page (revision-20) was last changed on 06-Feb-2007 11:29 by MicheleTomaiuolo  

This page was created on 24-Sep-2006 17:31 by RadomirDopieralski

Only authorized users are allowed to rename pages.

Only authorized users are allowed to delete pages.

Difference between version and

At line 46 added 28 lines
----
I'm using a DOMDocument to build the XML/XHTML, thereby ensuring the output is atleast XML compliant. Here is my current method for handling bold..
{{{
case '*':
if ($i < $l && $string[$i] == '*')
{
++$i;
if ($parent->nodeName == 'strong')
$parent = $parent->parentNode;
else if ($parent->nodeName == 'em'
&& $parent->parentNode->nodeName == 'strong')
$parent = $parent->parentNode->parentNode;
else
$parent = $parent->appendChild($doc->createElement('strong'));
}
else
$this->appendText($parent, '*');
break;
}}}
So for input of {{{//italic **bold italic// bold**//}}}, it'll currently output {{{<em>italic <strong>bold italic</strong></em> bold}}}.
But I'm unsure as if this is should be improved upon. Perhaps the strong should be re-opened after the closing em, as in {{{<em>italic <strong>bold italic</strong></em><strong> bold</strong>}}}.
-- [JaredWilliams], 2006-9-25
Version Date Modified Size Author Changes ... Change note
20 06-Feb-2007 11:29 4.807 kB MicheleTomaiuolo to previous
19 06-Feb-2007 11:11 4.563 kB RadomirDopieralski to previous | to last bug, explanation of terms
18 06-Feb-2007 10:51 4.105 kB MicheleTomaiuolo to previous | to last
17 05-Feb-2007 00:04 3.817 kB MicheleTomaiuolo to previous | to last editing "Engines"
16 05-Feb-2007 00:03 3.815 kB MicheleTomaiuolo to previous | to last
15 25-Sep-2006 15:21 3.685 kB MicheleTomaiuolo to previous | to last crossing tags
14 25-Sep-2006 14:38 3.677 kB MicheleTomaiuolo to previous | to last crossing tags
13 25-Sep-2006 12:40 3.325 kB 150.254.78.210 to previous | to last crossing tags not required
12 25-Sep-2006 12:15 2.838 kB MicheleTomaiuolo to previous | to last HTML -> XHTML
11 25-Sep-2006 12:14 2.837 kB Jared Williams to previous | to last
10 25-Sep-2006 12:13 2.847 kB Jared Williams to previous | to last grammar fix
9 25-Sep-2006 12:10 2.853 kB Jared Williams to previous | to last crossing token handling
8 25-Sep-2006 11:06 1.824 kB MicheleTomaiuolo to previous | to last new check added
7 25-Sep-2006 10:54 1.711 kB MicheleTomaiuolo to previous | to last new check added
6 25-Sep-2006 08:23 1.431 kB MicheleTomaiuolo to previous | to last not so smart
5 25-Sep-2006 01:32 0.922 kB Jared Williams to previous | to last bug ?
4 25-Sep-2006 00:05 0.713 kB MicheleTomaiuolo to previous | to last thanks
3 24-Sep-2006 20:39 0.913 kB MicheleTomaiuolo to previous | to last thanks
2 24-Sep-2006 17:48 0.442 kB RadomirDopieralski to previous | to last bug?
1 24-Sep-2006 17:31 0.361 kB RadomirDopieralski to last welcome
« This page (revision-20) was last changed on 06-Feb-2007 11:29 by MicheleTomaiuolo