yxm4109 / pandoc

Automatically exported from code.google.com/p/pandoc
GNU General Public License v2.0
0 stars 0 forks source link

Incorrect parsing of internal RST hyperlink targets #6

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
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-tar
gets

What steps will reproduce the problem?

1. Run pandoc on the following input:

`hello`_

.. _hello:

paragraph

Expected output:  "hello" should link to the paragraph "paragraph", which
should get id="hello".

2.  Run pandoc on the following input:

`hello`_ and `goodbye`_

.. _hello:
.. _goodbye: foo.bar.com

Expected output:  Both "hello" and "goodbye" should be links to foo.bar.com.

Original issue reported on code.google.com by fiddloso...@gmail.com on 12 Feb 2007 at 2:43

GoogleCodeExporter commented 8 years ago
Implementing this would require the ability to put attributes (at least an id) 
on arbitrary block elements.

Original comment by fiddloso...@gmail.com on 23 Jul 2010 at 4:33