Move footnote nodes out of chapter anchors

[Delivers #70812746]
[#70812746]

* 70812746-footnote-chapter-headings:
  Move footnote nodes out of chapter anchors
Merge branch 'master' into stable