Open jpetot opened 1 year ago
This is my project structure.
project |___ file1.md |___ file2.rst
I am trying to cross refer a .rst document in a markdown file.
.rst
# file1.md this is an [internal link](file2) to file2.rst
And then I convert the file1.md in to .rst for sphinx poetry run pandoc --from=markdown --to=rst --output=file1.rst file1.md
file1.md
poetry run pandoc --from=markdown --to=rst --output=file1.rst file1.md
# file1.rst this is an `internal link <file1>`__
according to the sphinx documentation, the expected format for internal link is :doc:path/to/document` (https://stackoverflow.com/a/54127156/13947877)
:doc:
# file1.rst this is an :doc:`internal link <file1>`
I don't know if this feature is in the scope of pandoc, but it could be nice. It could be a sphinx issue but I am not sure about it.
Is this a Sphinx feature or part of core reST?
We target reST, not Sphinx specifically.
This is my project structure.
I am trying to cross refer a
.rst
document in a markdown file.And then I convert the
file1.md
in to.rst
for sphinxpoetry run pandoc --from=markdown --to=rst --output=file1.rst file1.md
Actual output
according to the sphinx documentation, the expected format for internal link is
:doc:
path/to/document` (https://stackoverflow.com/a/54127156/13947877)Expected output
I don't know if this feature is in the scope of pandoc, but it could be nice. It could be a sphinx issue but I am not sure about it.