Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
FredM67 opened this issue Jun 30, 2024 · 0 comments

Comments

@FredM67
Copy link

FredM67 commented Jun 30, 2024

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

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

No branches or pull requests

1 participant