Looks like we are getting close here.
My suggestion
- Support GFM in
purpose,use,misuse. - Use the algorithm to check if anything that is found may be markdown and if so render these fields accordingly when displayed. I.e. No special markdown flag.
- For simplicity and clarity, I would stick with what GFM (and typical libraries) supports out of the box as much as possible.
- Use markdown judiciously in these fields. Less may be more, especially all numbers exist as superscript and subscript in Unicode and thus won’t require markup; some selected letters as well (those that are typically used in math formulas).
- I don’t expect many problems with existing archetypes but if any come up the fields would need to be updated, probably very slightly so.
Based on that suggestion this leaves the following questions
-
Should we support superscript via surrounding carets ^test^ and subscript via surrounding tildes: ~test~ This is typically available via extensions to GFM and could be enabled if desired.
-
Related, but maybe less compelling, should we support strikethrough as well via double tilde:
~~This text can be interpreted as strikethrough.~~ -
Should we allow the GFM supported HTML tags? This can typically be turned on or off (as a whole, not per tag). This relates to
<b>, <i>, <s>, <u>, <code>, <pre>, <a>, <img>, <ul>, <ol>, <li>, <table>, <tr>, <th>, <td>, <blockquote>, <hr>. The only somewhat compelling reason to have it is for<u>to underline.
My opinion on these questions is
- Yes - support subscript and superscript using ^ and ~
- Maybe - strikethrough is far less compelling and slightly dangerous (either way)
- No. Why use markdown if what you really want to do is html? The advantage of markdown is its human readability without being too distracting if it is just rendered as plain text.