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

Support for Description Lists #67

Open
ayosec opened this issue Apr 3, 2017 · 9 comments
Open

Support for Description Lists #67

ayosec opened this issue Apr 3, 2017 · 9 comments

Comments

@ayosec
Copy link

ayosec commented Apr 3, 2017

Some parsers have an extension to support description/definition lists. In https://talk.commonmark.org/t/description-list/289 there is a proposal to add it to CommonMark. A common syntax is to put a colon at the beginning of the line.

An example from the Pandoc manual:

Term 1

:   Definition 1

Term 2 with *inline markup*

:   Definition 2

        { some code, part of Definition 2 }

    Third paragraph of definition 2.
@darkdarkfruit
Copy link

That will be better if being supported

@ngirard
Copy link
Contributor

ngirard commented Aug 16, 2019

This issue should be considered critical.

Since mdBook relies on pulldown-cmark to produce its documentation, the current state of affairs is that Rust projects just cannot use definition lists within their documentations, unless they dismiss mdBook.

@ayosec has already given the 2 links that really matter here:

So IMHO the next move is a no-brainer:
just choose the same syntax as Pandoc's, and implement it as an extension, so as to bring back to the Rust community a means of expression that has existed for 50 years with troff, and since 1999 with HTML !

@marcusklaas
Copy link
Collaborator

It seems like this should be reasonably straightforward to implement as an extension. I can mentor anyone that would like to try to do this. Shoot me a message here or on the #pulldown-cmark channel at https://xi.zulipchat.com.

@ngirard
Copy link
Contributor

ngirard commented Aug 16, 2019

@marcusklaas thanks for your mentoring offer... I'm in !

jackpot51 pushed a commit to redox-os/ion that referenced this issue Aug 17, 2019
I suggest using this syntax for definition list, until the [blocking
problem](pulldown-cmark/pulldown-cmark#67) on the
pulldown-cmark-side is fixed.
@shonfeder
Copy link

Hi! I just thought I'd check in here to see if this is still in the works, or if it may be stalled out and in need of more energy/support.

@marcusklaas
Copy link
Collaborator

I don't think this is being worked on at the moment. It's open for any person to start work on. I am still available to assist.

@shonfeder
Copy link

@marcusklaas I'd be happy to take a crack at it. If you have any initial pointers that you think might help, please share at your leisure. Otherwise I'll circle back here once I figure out enough to form any questions, or, optimistically, to suggest my proposed implementation strategy.

@marcusklaas
Copy link
Collaborator

That's awesome! I only have very general pointers: first try to get a general idea of the parsing strategy (two phases) and then think of where description lists could fit in. Starting with one or two basic examples and trying to get those to parse those first seems to be another good way to get started. Hit me up here or on zulip when you have questions!

@Martin1887 Martin1887 added feature request good first issue A good issue for beginners labels May 7, 2023
@Martin1887 Martin1887 added this to the v0.11 milestone Feb 10, 2024
@Martin1887 Martin1887 removed the good first issue A good issue for beginners label Feb 10, 2024
@gdamore
Copy link

gdamore commented Mar 24, 2024

Here I am in 2024, and moving to mdbook from asciidoctor, and wishing for this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

7 participants