lsegal / atom-rst-preview

Open a rendered version of the ReStructuredText in the current editor with `ctrl-shift-r`.
Other
22 stars 80 forks source link

Preview incorrectly renders external links #51

Open Culpable opened 6 years ago

Culpable commented 6 years ago

When creating an external link using:

`Python version 2.7.10<https://www.python.org/downloads/release/python-2710/>`_

The preview will incorrectly render the hyperlink to the label, i.e. Python version 2.7.10

I'm not sure that this is a correct render. When compiled using Sphinx and deployed to GitHub, it is rendered to display Python version 2.7.10<https://www.python.org/downloads/release/python-2710/> instead. I believe the hyperlink should only render to the label when a space is inserted between the label and the link, as follows:

`Python version 2.7.10 <https://www.python.org/downloads/release/python-2710/>`_

This correctly displays the render on GitHub as Python version 2.7.10.

Sphinx docs points out that:

Important
There must be a space between the link text and the opening < for the URL.