tobiasah / mkdocs-caption

MkDocs plugin to add captions and easy element numbering
MIT License
3 stars 2 forks source link

Not working within admonitions and indented (block) text #6

Closed hug-sch closed 7 months ago

hug-sch commented 8 months ago

The plugin numbering and class inserting doesn't seem to work within an admonition (!!! note for example; text after that should also be indendented) or within the indented text of, for example a numbered list.

tobiasah commented 8 months ago

Thanks for bringing this up. Can you provide an example for both? I don`t think I fully understand.

Because this works for me:

!!! warning

    [](#my_id) demonstrates ...
hug-sch commented 8 months ago

Hi Tobias, the problem is with the Figure: caption. For example:

!!! note
      testing

      Figure: Mycaptionl.{class=pp-figure}

      ![](../images/....png)

uses the caption as literal text, does not number the figure and displays also the text {class= ...} I think it has something to do with the indention because this also occurs with indented lists.

hug-sch commented 7 months ago

Any news?

tobiasah commented 7 months ago

Sorry, the last weeks were quite busy. I released a new version 0.0.10 which should fix the issue.