-
-
Notifications
You must be signed in to change notification settings - Fork 3.4k
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
Incorrect parsing of reST hyperlink targets #262
Comments
Implementing this would require the ability to put attributes (at least an id) on arbitrary block elements. |
I think this could now be implemented without too much effort. |
For example, .. _hello: .. _goodbye: example.com Here both `hello` and `goodbye` should link to `example.com`. Fixes the first part of #262.
To fix the second part of this, we'll need to rewrite the RST reader using the F monad, instead of the current two-phase parse. Otherwise we can't parse
properly, since this requires (a) adding a div around |
Scrap that, I figured out a way to do it. |
Feels good to close a bug that has been open 10 years! |
From googlecode Issue #6
Reported by project member fiddlosopher, Feb 11, 2007
RST allows "internal" hyperlink targets that refer to the next element.
They can also be "chained." Pandoc's parser doesn't handle either case
correctly. See
http://docutils.sourceforge.net/docs/ref/rst/restructuredtext.html#hyperlink-targets
What steps will reproduce the problem?
Expected output: "hello" should link to the paragraph "paragraph", which
should get id="hello".
Expected output: Both "hello" and "goodbye" should be links to foo.bar.com.
The text was updated successfully, but these errors were encountered: