Skip to content

Support for definition lists #235

@Lucas-C

Description

@Lucas-C

Hi

I'd like to write a custom token & renderer for definition lists.

A common Markdown extension is to be create definition lists like this:

Term1
: definition1

Term2
: definition2

Inspirational specs:

I'd like to have support for those with mistletoe.

However I'm wondering how to do detect the block start, given that the : prefix occurs only on the seconde line,
and BlockToken start() method only accepts a single text line.

Would you have guidance regarding this, please? 🙂

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions