Skip to content

reStructuredText inline internal targets not supported #9196

Closed
@haxtibal

Description

@haxtibal

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.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions