useblocks / sphinx-simplepdf

A simple PDF builder for Sphinx documentations
https://sphinx-simplepdf.readthedocs.io
MIT License
32 stars 14 forks source link

Document and TOC completely wrong when reusing md files inside Sphinx project #101

Open FredM67 opened 2 weeks ago

FredM67 commented 2 weeks ago

I've a couple of pages that appear in 2 different sections. For that, I've a common md-file. This md-file is included through 2 different rst-files, each provide a unique "anchor". boitier-mono.rst:

.. _boitier-mono:

Préparation du boîtier
----------------------

.. include:: boitier.md
   :parser: myst_parser.sphinx_

and boitier-tri.rst:

.. _boitier-tri:

Préparation du boîtier
----------------------

.. include:: boitier.md
   :parser: myst_parser.sphinx_

The common md-file starts with:

(boitier)=

Les boîtiers utilisés pour ce routeur sont de type industriel, fabriqués en ABS avec un retardateur de flamme.<br />
Ils sont conformes aux normes de sécurité industrielles.

Here what I get !!! image