Hello, I've started a quick reference that lists all HTML tag with Markdown "short codes" [1]. The tags include: HTML | Notes ------------------------------- | --------------------- <h1>...</h1> - <h6>...</h6> | Heading 1-6 <p>...</p> | Paragraph <br> | Hard Line Break <i>...</i> | Italic Text (Emphasis) <b>...</b> | Bold Text (Strong Emphasis) <code>...</code> | Code (Monospace Text) <del>...</del> | Deleted (Strikethrough) Text <ul>(<li>...</li>)+</ul> | Unordered List <ol>(<li>...</li>)+</ol> | Ordered (Numbered) List <a href="...">...</a> | Link <img src="..." alt="..."> | Image (with Alternative Text) <table>(<tr>(<td>...</td>)+</tr>)+</table> | Table <pre><code>...</code></pre> | Preformatted Code Block <blockquote>...<blockquote> | Blockquote <hr> | Horizontal Rule <!-- ... --> | Comments Any tags missing? Let us know. Cheers [1] https://github.com/writekit/quickrefs/blob/master/HTML.md
Le 2015-08-04 ? 5:16, Gerald Bauer <gerald.bauer at gmail.com> a ?crit :> Any tags missing? Let us know. CheersWhich variant of Markdown are you targeting? Many of those are not available in the reference implementation of Markdown (the one on Daring Fireball). While if you use Markdown Extra you have footnotes, definition lists, and abbreviations which are not on your list. MultiMarkdown also has a syntax for <del>, <ins>, and <mark>, glossary entries, citations, and maths. There is a wide variation of what is available depending on the parser you use. Also, not all features map cleanly to an HTML tag (footnotes for instance). -- Michel Fortin michel.fortin at michelf.ca https://michelf.ca -------------- next part -------------- A non-text attachment was scrubbed... Name: smime.p7s Type: application/pkcs7-signature Size: 4939 bytes Desc: not available URL: <https://pairlist6.pair.net/pipermail/markdown-discuss/attachments/20150804/0c6fc8ae/attachment.bin>
It is vary unusual for Markdown parsers to return <b> and <i> tags. Usually, <strong> and <emphasis> are used instead. See Babelmark for an example: http://johnmacfarlane.net/babelmark2/?normalize=1&text=*italic*+%26+**bold** Also, most older implementations return XHTML Tags like <br /> and <hr /> rather than there HTML counterparts. In the age of HTML5, this doesn't really matter much (for most users), but back when they were first created it was important to having valid XHTLM (the new hotness of the time). Of note is the fact that <b> and <i> are not valid XHTML tags (IIRC). Thus the use of <strong> and <emphasis>. Waylan Limberg> On Aug 4, 2015, at 5:16 AM, Gerald Bauer <gerald.bauer at gmail.com> wrote: > > Hello, > > I've started a quick reference that lists all HTML tag with Markdown > "short codes" [1]. The tags include: > > HTML | Notes > ------------------------------- | --------------------- > <h1>...</h1> - <h6>...</h6> | Heading 1-6 > <p>...</p> | Paragraph > <br> | Hard Line Break > <i>...</i> | Italic Text (Emphasis) > <b>...</b> | Bold Text (Strong Emphasis) > <code>...</code> | Code (Monospace Text) > <del>...</del> | Deleted (Strikethrough) Text > <ul>(<li>...</li>)+</ul> | Unordered List > <ol>(<li>...</li>)+</ol> | Ordered (Numbered) List > <a href="...">...</a> | Link > <img src="..." alt="..."> | Image (with Alternative Text) > <table>(<tr>(<td>...</td>)+</tr>)+</table> | Table > <pre><code>...</code></pre> | Preformatted Code Block > <blockquote>...<blockquote> | Blockquote > <hr> | Horizontal Rule > <!-- ... --> | Comments > > > Any tags missing? Let us know. Cheers > > [1] https://github.com/writekit/quickrefs/blob/master/HTML.md > _______________________________________________ > Markdown-Discuss mailing list > Markdown-Discuss at six.pairlist.net > https://pairlist6.pair.net/mailman/listinfo/markdown-discuss