Skip to content

Potentially incorrect links at the bottom of the commonJs doc #57094

Closed
@dario-piotrowicz

Description

@dario-piotrowicz

Affected URL(s)

https://nodejs.org/docs/latest/api/modules.html#the-module-object_1, https://nodejs.org/docs/latest/api/modules.html#source-map-v3-support

Description of the problem

There are some links at the bottom of the commonjs doc that seem out of place to me:
Image

In the md file they are prefixed by this comment:

<!-- Anchors to make sure old links find a target -->

which does leads me to believe that these should not be rendered in the page

About the comment

The same comment can be found in other parts of the codebase, the anchors/elements below such comment are indeed not rendered:

node/doc/api/esm.md

Lines 117 to 119 in 1d8593e

<!-- Anchors to make sure old links find a target -->
<i id="esm_package_json_type_field"></i><i id="esm_package_scope_and_file_extensions"></i><i id="esm_input_type_flag"></i>

node/doc/api/esm.md

Lines 142 to 144 in 1d8593e

<!-- Anchors to make sure old links find a target -->
<i id="esm_package_entry_points"></i><i id="esm_main_entry_point_export"></i><i id="esm_subpath_exports"></i><i id="esm_package_exports_fallbacks"></i><i id="esm_exports_sugar"></i><i id="esm_conditional_exports"></i><i id="esm_nested_conditions"></i><i id="esm_self_referencing_a_package_using_its_name"></i><i id="esm_internal_package_imports"></i><i id="esm_dual_commonjs_es_module_packages"></i><i id="esm_dual_package_hazard"></i><i id="esm_writing_dual_packages_while_avoiding_or_minimizing_hazards"></i><i id="esm_approach_1_use_an_es_module_wrapper"></i><i id="esm_approach_2_isolate_state"></i>

node/doc/api/module.md

Lines 1617 to 1619 in 1d8593e

<!-- Anchors to make sure old links find a target -->
<a id="module_module_findsourcemap_path_error"></a>

cc @aduh95

Metadata

Metadata

Assignees

No one assigned

    Labels

    docIssues and PRs related to the documentations.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions