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

Mediawiki markup to reST conversion adds en extra "_" #724

Closed
alexprengere opened this issue Jan 25, 2013 · 2 comments
Closed

Mediawiki markup to reST conversion adds en extra "_" #724

alexprengere opened this issue Jan 25, 2013 · 2 comments

Comments

@alexprengere
Copy link

I use pandoc 1.10.0.4 with Ubuntu 12.10.

Suppose I have a file containing one link, with mediawiki markup:

$ cat toto.mediawiki
This is a [http://www.google.fr link].

Now I convert this to reST:

$ pandoc -f mediawiki -t rst toto.mediawiki > toto.rst 
$ cat toto.rst
This is a `link <http://www.google.fr>`__.

There is two "" at the end of the link, only one is expected. It may not be a big deal if you use reST to HTML conversion next, but you if convert it again to mardown, here you really get an extra "" in your source:

$ pandoc -f rst -t markdown toto.rst
This is a [link](http://www.google.fr)\_.
@jgm
Copy link
Owner

jgm commented Jan 25, 2013

The writer did change, but the problem is really in the RST reader.
It should accept the anonymous form of links (two _s), as rst2html.py
does.

@alexprengere
Copy link
Author

I check the reST documentation on hyperlinks here, and you are absolutely right, two trailing underscores are allowed for anonymous links.
Si I guess the reST reader do not support these.

@jgm jgm closed this as completed in c18fd7e Jan 26, 2013
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