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

Multiple links with same label/name lead to an invalid reST file. #51

Open
snilek opened this issue Mar 22, 2020 · 0 comments
Open

Multiple links with same label/name lead to an invalid reST file. #51

snilek opened this issue Mar 22, 2020 · 0 comments

Comments

@snilek
Copy link

snilek commented Mar 22, 2020

Export of two or more org links with same name/label results in an invalid reST file. This is caused by ox-rst exporting references as named links instead of anonymous links.

Thus this .org notation:

[[https://example.com][this]] and [[http://example2.com][this]]

is exported as

`this <https://example.com>`_ and `this <http://example2.com>`_

creating an invalid reST file.

The solution would be to

  1. use anonymous links only, or
  2. use named link only in the first reference.

and thus to export the above fragment like this:

`this <https://example.com>`__ and `this <http://example2.com>`__

Thanks and regards,
Jan Janský

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