Skip to content

Conversation

@gmilde
Copy link
Contributor

@gmilde gmilde commented Oct 9, 2025

All Docutils elements with "ids" attribute can serve as internal target. The "ids" attribute is indirectly specified, via the rST "refname" (in a preceding empty target .. _refname: or as "name" option in rST directives).

This means:

  • Not all elements with ID have a matching element.
  • If rST <target> elements refer to another element (via the "refid", "refuri", or "refname" attribute), they can be safely ignored.

Add an optional argument "node" to rst_in.NodeVisitor.open_moin_page_node()

Every ID of the passed Docutils node adds an empty <span> with the ID.
(IDs on the "moinpage node" would be prefereable but may don't always reach
the HTML and don't survive an rST -> rST round-trip.)

Use an "attention" type admonition for the "generic admonition".

Add/Update test cases.

TODO: some IDs are still dropped.

All Docutils elements with "ids" attribute can serve as internal target.
The "ids" attribute is indirectly specified, via the rST "refname"
(in a preceding *empty* target `.. _refname:` or as "name" option in
rST directives).

This means:

* Not all elements with ID have a matching <target> element.
* If rST `<target>` elements refer to another element
  (via the "refid", "refuri", or "refname" attribute),
  they can be safely ignored.

Add an optional argument "node" to `rst_in.NodeVisitor.open_moin_page_node()`

  Every ID of the passed Docutils node adds an empty `<span>` with the ID.
  (IDs on the "moinpage node" would be prefereable but may don't always reach
  the HTML and don't survive an rST -> rST round-trip.)

Use an "attention" type admonition for the "generic admonition".

Add/Update test cases.

TODO: some IDs are still dropped.
@UlrichB22 UlrichB22 merged commit e5aa7c3 into moinwiki:master Oct 10, 2025
9 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants