tommilligan / mdbook-admonish

A preprocessor for mdbook to add Material Design admonishments.
MIT License
176 stars 20 forks source link

feat: support admonitions inside list items #124

Closed tommilligan closed 1 year ago

tommilligan commented 1 year ago

Closes #123

Maintains indent of admonition blocks from enclosing items. This allows the final rendered item to be embedded in a parent, such as a list:

image

Prior to this, admonitions were transformed into HTML, but this HTML was not indented in the parent markdown. This led to the item not being considered a child of the containing markdown.