Ticket #13 (closed defect: fixed)
HTML tags in markdown document and consequences
Reported by: | philippe | Owned by: | sop |
---|---|---|---|
Component: | server | Severity: | major |
Keywords: | HTML, markdown,pandoc,color | Cc: |
Description
Pandoc markdown permits to include HTML tags in a markdown document, and keeps interpreting any text outside of the tags as markdown. Thus:
<div style="color:green">_This text will be shown in green because of HTML style and in italics because of markdown formatting_</div>
will result when processed by standalone pandoc into the desired behaviour (green text in italics).
On co-ment, when editing the text as markdown, the HTML tags will be removed at save time.
This results in an impossibility to choose a font color, which is a bit extreme.
Possible treatment of this issue :
1) Allow (if possible) a limited number of HTML tags that do not interfere with co-ment treatment of comment scope.
2) Include in the editor a text color choice which will be stored as in-line (in markdown) HTML tags. Same problem than above but better control.
3) Extend pandoc markdown with a font color spec.