Skip to content

[Discuss] Definition lists #109

Closed
Closed

Description

@bmorelli25

Summary

(AsciiDoc - Description Lists)

For Asciidoc’s description list, we use MyST’s definition list. Note that this feature is not enabled by default and one needs to add deflist to myst_enable_extensions.

<term>
: <definition>
<term>
: <definition>

The Elastic Asciidoc engine defines multiple types of description lists which are formatted differently. The different types are specified by an attribute before the description list. For example, this specifies that the description list is of type ‘horizontal’:

[horizontal]
<term>:: <description>
<term>:: <description>

For now, they will all be converted as the standard MyST definition list.

To do

Activity

  1. added
    authoring
    on Dec 17, 2024
  2. changed the title [-][Migration tooling] Description lists[/-] [+][Migration tooling] Definition lists[/+] on Dec 17, 2024
  3. Mpdreamz commented on Dec 17, 2024

    @Mpdreamz
    Member

    The markdown library we use has optional support for definition lists in the following format:

    https://github.com/xoofx/markdig/blob/master/src/Markdig.Tests/Specs/DefinitionListSpecs.md

    Term 1
    :   This is a definition item
        With a paragraph
        > This is a block quote
    
        - This is a list
        - with an item2
    
        ```java
        Test
    
    
        ```

    What I really don't like is that this introduces space indentation sensitive formatting to the source documents for the benefit of the output.

    If we can capture all valid use cases for this with more specific directives we will create a more prescriptive writing experience and a more uniform UX on the user facing docs.

  4. bmorelli25 commented on Jan 10, 2025

    @bmorelli25
    MemberAuthor

    If we can capture all valid use cases for this with more specific directives we will create a more prescriptive writing experience and a more uniform UX on the user facing docs.

    Added as a question to follow-up with during bug bash next week.

  5. changed the title [-][Migration tooling] Definition lists[/-] [+][Discuss] Definition lists[/+] on Jan 13, 2025
  6. added
    question
    on Jan 13, 2025
  7. Mpdreamz commented on Jan 27, 2025

    @Mpdreamz
    Member

    Given how pervasive definition lists are in docs openend:

    #348

    To add support for vertical definition lists.

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    authoringquestion

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions