Modify Markdown `dl` syntax to support multiple subsequent `dt` or `dd` elements
See original GitHub issueDescription
The current <dl>
syntax (i.e. dt :: dd
) only supports a 1:1 ratio of terms to descriptions.
Reference
- Original Discussion at Reddit
- The following examples follow the syntax set forth in Kramdown, Pandoc, MultiMarkdown, and Markdown Extra.
Basic Case:
First term
: First description
: Second description
<dl>
<dt>First term</dt>
<dd>First description</dd>
<dd>Second description</dd>
</dl>
Issue Analytics
- State:
- Created a year ago
- Comments:16 (5 by maintainers)
Top Results From Across the Web
Extended Syntax - Markdown Guide
The basic Markdown syntax allows you to create code blocks by indenting lines by four spaces or one tab. If you find that...
Read more >[Markdown] Decide what to do about <dl> · Issue #4367 - GitHub
I'm with extending GFM. For your edification, below is HTML, Kramdown and table version taken from a page in the docs. The Kramdown...
Read more >How to style dt and dd so they are on the same line?
After playing with it a while, I was able to support multiple DT elements per DD , but not multiple DD elements per...
Read more >GitLab Flavored Markdown (GLFM)
When you enter text in the GitLab UI, GitLab assumes the text is in the Markdown language. The text is rendered with a...
Read more >The Ultimate Markdown Guide (for Jupyter Notebook) - Medium
Markdown Cells allows you to write and render Markdown syntax. Here's where you can explain and document the processes. On the other hand,...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@calculuschild Yeah, I noticed that the current implementation just uses bold tags and paragraph breaks, and honestly, that is good enough for users to reproduce 5e styles.
I totally understand the battle against syntax bloat, I’m just advocating for altering the current (unused?)
<dl>
support to better comply with the rest of the industry’s syntax and to allow for better support of the HTML spec on this tag. The tag is already in the system, it just doesn’t support the full feature set that it could, and uses its own unique syntax apart from the one on which other parsers seem to have standardized.And @ericscheid, I don’t want to jump the gun, but will happily work up a PR, if that’s acceptable.
Two paragraphs in a<dd>
, from #181Two paragraphs in a definition of a term, from #181.
Though this is arguably an edge case, I am however all for semantic coding — it’s a rising tide that raises all boats.