I'm using Text.ParserComb inators.Parsec and Text.XHtml to parse an input like this:


Code:
this is the beginning of the paragraph --this is an emphasized text-- and this is the end\n
And my output should be:

Code:
<p>this is the beginning of the paragraph <em>this is an emphasized text</em> and this is the end\n</p>
This code parses and returns an emphasized element

...