- if ( $ext == "B" ) $n = "BOLD" ;
- if ( $ext == "I" ) $n = "ITALICS" ;
- if ( $ext == "P" ) $n = "PARAGRAPH" ;
+ if ( $ext == "B" || $ext == "STRONG" ) $n = "BOLD" ;
+ else if ( $ext == "I" || $ext == "EM" ) $n = "ITALICS" ;
+ else if ( $ext == "U" ) $n = "UNDERLINED" ; # Hey, virtual wiki tag! ;-)
+ else if ( $ext == "S" ) $n = "STRIKE" ;
+ else if ( $ext == "P" ) $n = "PARAGRAPH" ;
+ else if ( $ext == "TABLE" ) $n = "TABLE" ;
+ else if ( $ext == "TR" ) $n = "TABLEROW" ;
+ else if ( $ext == "TD" ) $n = "TABLECELL" ;
+ else if ( $ext == "TH" ) $n = "TABLEHEAD" ;
+ else if ( $ext == "CAPTION" ) $n = "CAPTION" ;
+ else if ( $ext == "NOWIKI" ) $n = "NOWIKI" ;
+ if ( $n != $old_n ) unset ( $this->attrs["NAME"] ) ; # Cleanup
+ else if ( $parser->nowiki > 0 ) $n = "" ; # No "real" wiki tags allowed