Open timvink opened 3 years ago
With the following directory structure:
docs/ - folder/page.md - sys.png mkdocs.yml
And use_directory_urls: true in mkdocs.yml, the images break when enabling this plugin.
use_directory_urls: true
mkdocs.yml
The src path is not correct, f.e. changing:
<img alt="The github logo" src="../../github-octocat.png">
To
<figure class="figure-image"> <img src="../github-octocat.png" alt="The github logo"> <figcaption>The github logo</figcaption> </figure>
For a reproducable example (try turning img2fig off and on):
git clone git@github.com:timvink/mkdocs-print-site-plugin.git cd mkdocs-print-site-plugin mkdocs serve -f tests/fixtures/projects/relative_images/mkdocs_img2fig.yml
With the following directory structure:
And
use_directory_urls: true
inmkdocs.yml
, the images break when enabling this plugin.The src path is not correct, f.e. changing:
To
For a reproducable example (try turning img2fig off and on):