Skip to content

ndg-commonmark docs aren't rendered on the site #291

Description

@toonn

Issue

I was looking for documentation on admonitions, to find out which ones are supported and how to nest them.

The former is documented in ndg-commonmark/docs/SYNTAX.md but I couldn't find it on the site.

More of a question I didn't want to open a separate issue for

The latter seems to be only supported by accident? I've achieved nested admonitions by mixing admonition syntax from ndg-commonmark and GFM Alerts:

:::{.example}
This is an example.

> [!NOTE]
> With a nested note!
:::

With a little additional CSS to give nested admonitions and code blocks a small left and right margin, it looks pretty nice.

GFM treats the admonition type case-insensitively, NDG (2.10.1) currently requires all caps.

GFM doesn't allow for nested admonitions even though the syntax would allow for it elegantly : (

Will this nesting always be supported or should I rather fall back to plain HTML, manually specifying a div with the appropriate classes (including the title paragraph)?

Activity

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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions