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

reStructuredText inline internal targets not supported #9196

Closed
haxtibal opened this issue Nov 16, 2023 · 0 comments
Closed

reStructuredText inline internal targets not supported #9196

haxtibal opened this issue Nov 16, 2023 · 0 comments

Comments

@haxtibal
Copy link

pandoc seemingly can't handle reStructuredText inline internal targets:

echo 'Define  _`my target`, then reference `my target`_.' | pandoc -f rst -t html
[WARNING] Reference not found for 'my target' at line 1 column 50
<p>Define _<span class="title-ref">my target</span>, then reference <a
href="">my target</a>.</p>

The almost same thing works for Markdown, so I'd suppose the AST would be ready:

echo 'Define [my target]{#my-target .target}, then reference [my target](#my-target){.reference .internal}' | pandoc -f markdown -t html
<p>Define <span id="my-target" class="target">my target</span>, then
reference <a href="#my-target" class="reference internal">my
target</a></p>

Could we have inline target support for reStructuredText?

This was tested with pandoc-3.1.9-linux-amd64.

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

No branches or pull requests

2 participants