question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Modify Markdown `dl` syntax to support multiple subsequent `dt` or `dd` elements

See original GitHub issue

Description

The current <dl> syntax (i.e. dt :: dd) only supports a 1:1 ratio of terms to descriptions.

Reference

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:open
  • Created a year ago
  • Comments:16 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
develleopercommented, Sep 7, 2022

@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.

1reaction
ericscheidcommented, Sep 9, 2022

Two paragraphs in a <dd>, from #181

Two paragraphs in a definition of a term, from #181.

two paragraphs in a dd

Though this is arguably an edge case, I am however all for semantic coding — it’s a rising tide that raises all boats.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found