Skip to content

Incorrect link generation for external RFC section/appendix references #46

@mohammadv184

Description

@mohammadv184

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:

  1. It creates two separate links instead of one.

  2. 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>

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions