todvora / gitbook-plugin-image-captions

Image captions plugin for GitBook
Apache License 2.0
44 stars 18 forks source link

Question: Chapter number always starts with 1 #26

Open erikvullings opened 6 years ago

erikvullings commented 6 years ago

The default caption uses something like "caption": "Image _PAGE_LEVEL_._PAGE_IMAGE_NUMBER_ - _CAPTION_". In my case, when I do not use different parts in my SUMMARY.md file, the chapter number is always 1 (probably reflecting part 1), so all my figure numbers have a leading 1, e.g. Fig 1.1.1 is the first image in chapter 1. I would have preferred to have Fig 1.1 instead. Is this possible?

markomanninen commented 6 years ago

Wouldnt this work:

"Image _PAGE_IMAGENUMBER - CAPTION"