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

Can we include a link in the mdinclude directive #51

Open
SavvyOsive opened this issue Jul 24, 2022 · 2 comments
Open

Can we include a link in the mdinclude directive #51

SavvyOsive opened this issue Jul 24, 2022 · 2 comments

Comments

@SavvyOsive
Copy link

In place of the relative file path to the md in the .. mdinclude:: file directive, is there a way we can provide a link to the md and render the md in the rst.

@CrossNox
Copy link
Owner

@SavvyOsive can you elaborate with an example?

@SavvyOsive
Copy link
Author

SavvyOsive commented Sep 18, 2022

m2r2 converter only renders the md which is provided to it as a file in the mdinclude directive like this

.. mdinclude:: ./md/Readme.md

but we can't provide a remote link of the md like

.. mdinclude:: https://github.com/apache/kafka/blob/trunk/PULL_REQUEST_TEMPLATE.md

It doesn't render the md provided to it as a remote link and gives the following error because it's looking for a file or directory in the local only
PFKnD

Is there a way we can render md inside rst by providing a link of the md rather than downloading it on the local and providing a relative path?

@CrossNox

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

2 participants