code: private void parseBoldAndItalicSpans(SpanManager sm, Span line,
  			List<Span> boldSpans, List<Span> italicSpans)
  	{
  		// Das suchen nach BOLD und ITALIC muss in den Jeweiligen
  		// Zeilen geschenhen, da ein LineSeparator immer BOLD und
  		// Italic Tags schliesst.
  
  		// Bold Spans
  		parseQuotedSpans(sm, line, boldSpans, "'''");
  
  		// Italic Spans
  		parseQuotedSpans(sm, line, italicSpans, "''");
  
  		// Maybe there is ONE SINGLE OPEN TAG left... handel these...
  		int openTag = sm.indexOf("''", line);
  		if (openTag != -1)
  		{
  			// build a Span from this Tag.
  			Span qs = new Span(openTag, line.getEnd());
  
  			// calculate the original src positions.
  			if (calculateSrcSpans)
  			{
  				qs.setSrcSpan(new SrcSpan(sm.getSrcPos(openTag), sm
  						.getSrcPos(line.getEnd())));
  			}
  
  			// is it a Bold or an Italic tag ?
  			if (sm.indexOf("'''", openTag, openTag + 3) != -1)
  			{
  				// --> BOLD
  				boldSpans.add(qs);
  				sm.delete(openTag, openTag + 3);
  			}
  			else
  			{
  				// --> ITALIC
  				italicSpans.add(qs);
  				sm.delete(openTag, openTag + 2);
  			}
  		}
  	}
docs: Searches a line for Bold and Italic quotations, this has to be done
  linewhise.