Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Description lists #6770

Open
kabajau opened this issue Dec 13, 2024 · 0 comments
Open

Description lists #6770

kabajau opened this issue Dec 13, 2024 · 0 comments
Labels
enhancement New feature or request

Comments

@kabajau
Copy link

kabajau commented Dec 13, 2024

Is your feature request related to a problem? Please describe.
Nextcloud markdown doesn't have a syntax for description lists.

Describe the solution you'd like
Add support for a description list syntax, such as the one implemented by HedgeDoc:

Term A

: Description of term A.

Term B
: Description of Term B.


Term C
: First description of term C.
: Second description of term C.

Term D
: First description of term D.

: Second description of term D.

Up to one empty line between a title and a corresponding description should be allowed (as shown in Term A).

At least one empty line between the last description of one title and the next title should be required.

One or more empty lines between two descriptions corresponding to the same title should be allowed (as shown in Term D).

The above markdown should be equivalent to the following HTML:

<dl>
    <dt>Term A</dt>
    <dd>Description of term A.</dd>
    <dt>Term B</dt>
    <dd>Description of term B.</dd>
    <dt>Term C</dt>
    <dd>First description of term C.</dd>
    <dd>Second description of term C.</dd>
    <dt>Term D</dt>
    <dd>First description of term D.</dd>
    <dd>Second description of term D.</dd>
<dl>

Describe alternatives you've considered
Not use description lists, but that's not really an alternative.

@kabajau kabajau added the enhancement New feature or request label Dec 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant