Skip to content

[FIX] gen_addon_readme: images in several md fragments - #688

Open
jaydev-CAstra wants to merge 1 commit into
OCA:masterfrom
jaydev-CAstra:fix-duplicate-image-substitutions
Open

jaydev-CAstra wants to merge 1 commit into
OCA:masterfrom
jaydev-CAstra:fix-duplicate-image-substitutions

Conversation

@jaydev-CAstra

Copy link
Copy Markdown

Fixes #632

Each .md fragment is converted to rst on its own, and pandoc names the images image, image1, ... in every file. With images in two fragments (DESCRIPTION.md and CONFIGURE.md for instance) the README ends up with two .. |image| image:: definitions and docutils fails with "Duplicate substitution definition name", which blocks the merge bot (see OCA/server-tools#3045).

Substitutions already defined by a previous fragment are now renamed to the next free name, so READMEs without the problem do not change.

Pandoc names the images of each fragment image, image1, ... so two
fragments with images produce a duplicate substitution definition and
docutils fails. Rename the ones already used by a previous fragment.

Fixes OCA#632
@MiquelRForgeFlow

Copy link
Copy Markdown
Contributor

@legalsylvain

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Error in markdown compilation if images are present

2 participants