mkdocs-img2fig-plugin icon indicating copy to clipboard operation
mkdocs-img2fig-plugin copied to clipboard

Add option to ignore converting certain figures

Open timvink opened this issue 4 years ago • 11 comments

I have a feature request.

I would like the option to specify that some images in my page should not be converted to figures.

For example:

[![Actions Status](https://github.com/timvink/mkdocs-print-site-plugin/workflows/pytest/badge.svg)](https://github.com/timvink/mkdocs-print-site-plugin/actions)
![PyPI - Python Version](https://img.shields.io/pypi/pyversions/mkdocs-print-site-plugin)
![PyPI](https://img.shields.io/pypi/v/mkdocs-print-site-plugin)
![PyPI - Downloads](https://img.shields.io/pypi/dm/mkdocs-print-site-plugin)
[![codecov](https://codecov.io/gh/timvink/mkdocs-print-site-plugin/branch/master/graph/badge.svg)](https://codecov.io/gh/timvink/mkdocs-print-site-plugin)
![GitHub contributors](https://img.shields.io/github/contributors/timvink/mkdocs-print-site-plugin)
![PyPI - License](https://img.shields.io/pypi/l/mkdocs-print-site-plugin)

Should render as:

image

But renders as:

image

Proposal

I would suggest two updates:

  • If an image does not contain a caption (f.e. ![](<path>)), do not convert
  • If an image caption contains the words img2fig-ignore, remove the text from the caption and do not convert to figure

timvink avatar Sep 19 '20 11:09 timvink