anchor.diff:        setText(url.substring(0, url.length() - 1));
       }
     }
  +
  +  public void breakOut() {
  +    resetFormatting();
  +    ulistLevel = 0;
  +    olistLevel = 0;
  +    inHeader = false;
  +    intr = false;
  +    nowiki = false;
  +    cpp = false;
  +    html = false;
  +    java = false;
  +    xhtml = false;
  +    xml = false;
  +  }
   }
   
   /* ***** Headings ***** */
   
   HSt  : LINE '='+ ~'=' WS? {doHdr();} ;
  -HEnd : ' '* '='* (LineBreak | ParBreak) {inHeader}? {inHeader = false; resetFormatting();} ;
  +HEnd : ' '* '='* (LineBreak | ParBreak) {inHeader}? {breakOut();} ;
   
   /* ***** Lists ***** */
   
  
positive.code: 
  /* ***** Horizontal Rules ***** */
  
  Rule : LINE '---' '-'+? {resetFormatting();} ;
  
  /* ***** Tables ***** */
  
  RowEnd  : '|' LineBreak {intr}? {intr=false;} ;
  TdStart : '|'  {resetFormatting(); intr=true;} ;
  ThStart : '|=' {resetFormatting(); intr=true;} ;
  
  /* ***** Inline Formatting ***** */
  
  
negative.code: 
  InlineBrk : '\\\\' ;
  
  ParBreak  : LineBreak LineBreak+ {breakOut();} ;
  
  LineBreak : '\r'? '\n' ;
  
  