Problem Description
The script incorrectly handles hyperlinks for references that point to a specific section or appendix in an external RFC.
For example, in the text of RFC 5322, there is a reference to RFC 5234, Appendix B.1. The current htmlization script produces the following incorrect HTML:
<a href=".../rfc5234.html">RFC 5234</a>, <a href="#appendix-B.1">Appendix B.1</a>
This is wrong because:
-
It creates two separate links instead of one.
-
The link to "Appendix B.1" incorrectly points to a local anchor (#appendix-B.1) within the current document (RFC 5322), which does not exist.
The correct behavior would be to generate a single hyperlink pointing directly to the appendix within RFC 5234:
<a href=".../rfc5234.html#appendix-B.1">RFC 5234, Appendix B.1</a>