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

3.6: RST "Reference not found", used to work in 3.5 #10484

Closed
nedbat opened this issue Dec 21, 2024 · 0 comments · Fixed by #10485
Closed

3.6: RST "Reference not found", used to work in 3.5 #10484

nedbat opened this issue Dec 21, 2024 · 0 comments · Fixed by #10485
Labels

Comments

@nedbat
Copy link

nedbat commented Dec 21, 2024

One form of .rst link that worked in 3.5 is no longer working in 3.6.

In foo.rst, "pull 234" isn't found as a reference:

- One issue fixed: `issue 123`_.

- One change merged: `Big change <pull 234_>`_.

- Improved the `home page <https://example.com/homepage>`_.

- One more `small change`__.

.. _issue 123: https://github.com/joe/project/issues/123
.. _pull 234: https://github.com/joe/project/pull/234
__ https://github.com/joe/project/issues/999

With 3.5:

% /dwn/pandoc-3.5-arm64/bin/pandoc -frst -tmarkdown_strict foo.rst
-   One issue fixed: [issue
    123](https://github.com/joe/project/issues/123).
-   One change merged: [Big
    change](https://github.com/joe/project/pull/234).
-   Improved the [home page](https://example.com/homepage).
-   One more [small change](https://github.com/joe/project/issues/999).

With 3.6:

% /dwn/pandoc-3.6-arm64/bin/pandoc -frst -tmarkdown_strict foo.rst
[WARNING] Reference not found for 'pull 234' at foo.rst_chunk line 1 column 45
-   One issue fixed: [issue
    123](https://github.com/joe/project/issues/123).
-   One change merged: [Big change]().
-   Improved the [home page](https://example.com/homepage).
-   One more [small change](https://github.com/joe/project/issues/999).
@nedbat nedbat added the bug label Dec 21, 2024
jgm pushed a commit that referenced this issue Dec 22, 2024
This case was missed when changing the reference link strategy for RST
to allow a single pass.

Closes #10484.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant