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

[Migration tooling] Definition lists #109

Open
bmorelli25 opened this issue Dec 17, 2024 · 1 comment
Open

[Migration tooling] Definition lists #109

bmorelli25 opened this issue Dec 17, 2024 · 1 comment
Labels
authoring Relates to our markdown parser

Comments

@bmorelli25
Copy link
Member

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

@bmorelli25 bmorelli25 added the authoring Relates to our markdown parser label Dec 17, 2024
@Mpdreamz Mpdreamz changed the title [Migration tooling] Description lists [Migration tooling] Definition lists Dec 17, 2024
@Mpdreamz
Copy link
Member

Mpdreamz commented Dec 17, 2024

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
authoring Relates to our markdown parser
Projects
None yet
Development

No branches or pull requests

2 participants