-
-
Notifications
You must be signed in to change notification settings - Fork 3.5k
Error parsing reStructuredText hyperlink inside directive #10281
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
Labels
Comments
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. |
Question: is this definition scoped to the indented context? |
According to rst2html they are not scoped:
|
christopherkenny
pushed a commit
to christopherkenny/pandoc
that referenced
this issue
May 23, 2025
Instead of having an initial pass where we collect reference definitions, we create links with target `##SUBST##something` or `##REF##something` or `##NOTE##something`, and resolve these in a pass over the parsed AST. This allows us to handle link references that are not at the top level. Closes jgm#10281.
christopherkenny
pushed a commit
to christopherkenny/pandoc
that referenced
this issue
May 23, 2025
Instead of having an initial pass where we collect reference definitions, we create links with target `##SUBST##something` or `##REF##something` or `##NOTE##something`, and resolve these in a pass over the parsed AST. This allows us to handle link references that are not at the top level. Closes jgm#10281.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
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: