sphinx-notes / any

Sphinx domain for documenting anything
https://sphinx.silverrainz.me/any/
BSD 3-Clause "New" or "Revised" License
7 stars 0 forks source link

Use title node as anchor node instead of section node #19

Closed SilverRainZ closed 2 years ago

SilverRainZ commented 2 years ago

In _setup_nodes, the anchor node(ahrnode) will be noted by note_explicit_target for ahrnode, while sectnode is already noted by note_implicit_target.

Multiple note_xxx_target calls to same node causes undefined behavior, so we use titlenode as anchor node.