CrossNox / m2r2

Markdown to reStructuredText converter
https://crossnox.github.io/m2r2
MIT License
107 stars 26 forks source link

Can we include a link in the mdinclude directive #51

Open SavvyOsive opened 2 years ago

SavvyOsive commented 2 years ago

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 commented 2 years ago

@SavvyOsive can you elaborate with an example?

SavvyOsive commented 1 year ago

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