You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# /pandoc-3.5/bin/pandoc /pass-by-value.rst -f rst -t html5 > /pass-by-value_pandoc.html
[WARNING] Reference not found for 'want speed? pass by value' at /pass-by-value.rst_chunk line 3 column 87
if the document is changed to remove the spaces before the .., it works correctly
- .. _Want Speed? Pass by Value: https://web.archive.org/web/20140205194657/http://cpp-next.com/archive/2009/08/want-speed-pass-by-value/
+.. _Want Speed? Pass by Value: https://web.archive.org/web/20140205194657/http://cpp-next.com/archive/2009/08/want-speed-pass-by-value/
"seealso" is a sphinx directive, but if replaced with "note" rst2html parses everything correctly (without a need to remove the spaces before the ..):
$ rst2html pass-by-value.rst > pass-by-value.html
$ grep -F 'Want Speed? Pass by Value' pass-by-value.html
<p class="last">For more information about the pass-by-value idiom, read: <a class="reference external" href="https://web.archive.org/web/20140205194657/http://cpp-next.com/archive/2009/08/want-speed-pass-by-value/">Want Speed? Pass by Value</a>.</p>
The text was updated successfully, but these errors were encountered:
I believe this is because we do an initial pass to find link references, and we only look at those at the outer level. Fixing this would require, at least, making that first parsing pass more complete.
The indented hyperlink reference in https://github.com/llvm/llvm-project/blob/36a0d442eb4d2f1e0782bc2a1b1715fc7631faec/clang-tools-extra/docs/clang-tidy/checks/modernize/pass-by-value.rst?plain=1#L153, inside a "seealso" directive, is not corrected parsed by pandoc 3.5
if the document is changed to remove the spaces before the
..
, it works correctly"seealso" is a sphinx directive, but if replaced with "note" rst2html parses everything correctly (without a need to remove the spaces before the
..
):The text was updated successfully, but these errors were encountered: