Ticket #252 (closed enhancement: fixed)
Allow markdown inside of emphasis
|Reported by:||DanielDiaz||Owned by:||Fūzetsu|
By request, I copied below an e-mail I sent to David Waern about an issue with Haddock.
These are the HTML output of two docs written in Haddock syntax.
Yes, I κ. <p>Yes, I κ.</p>
Yes, I /κ/. <p>Yes, I <em>&#954;</em>.</p>
Therefore, my question is, why is the ampersand escaped when it is inside the emphasis block, but it is not when outside? Is this consistent? I really would like to be able to emphasize characters written as HTML codes.
I guess that this is happening because inside an emphasis block no Haddock parsing is done, since I noticed that inline code blocks (@...@) do not work either, which forces me to do things like:
/The command /@foo@/ does not work./
Not a big issue, because at least is possible to get the correct output. However, the same cannot be said about HTML codes.
Another note: I think this could imply a drastic change in the Haddock parser, but it would be great if I would not need to emphasize a text line-by-line. Let me explain myself with an example. I would like to write:
-- /I divided this emphasized -- text in multiple lines -- because it was too long for -- a single line./
-- /I divided this emphasized/ -- /text in multiple lines/ -- /because it was too long for/ -- /a single line./