-
Notifications
You must be signed in to change notification settings - Fork 196
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
Possibility to include the content of a specific markdown section? #628
Comments
Thanks for opening your first issue here! Engagement like this is essential for open source projects! 🤗 |
Ah, after some browsing I found the relevant code passage MyST-Parser/myst_parser/mocking.py Line 319 in 28725fc
There I realised this is already implemented with the |
Thanks, I can take a look, though usually it's best if the people who write the code also write the API documentation, to avoid mistakes or missing details. However, I also understand that developers may be busy enough with the code itself, and writing documentation can sometimes be a bit of a liability. |
Context
I'd like to include a specific section of a Readme file in my sphinx documentation. With
{include} ../../README.md
I can include the whole file, but is it also possible to include a just the content of a specific section, without the heading?In the Readme, the first heading is the project name, while in the Sphinx documentation I would like it to be "Readme".
This is somewhat related to #516, with the difference that I'd like to rename the first heading instead of putting another heading above.
Proposal
Something like
:section: section_name
(below the{include}
line) to include only the content of the given section.Tasks and updates
No response
The text was updated successfully, but these errors were encountered: