Skip to content

Modify all headings in sections to be valid #391

@carolineBda

Description

@carolineBda

Issue to fix
Htlm is invalid here :
https://code.travail.gouv.fr/fiche-ministere-travail/entreprises-dinsertion-ei
but valid on source page
https://travail-emploi.gouv.fr/emploi-et-insertion/insertion-activite-economique/article/entreprises-d-insertion-ei

Solution
Currently in our page, headings are one less further than on source site as on source H1 is always the link to home.
When we parse the html of each sections, we should transform every decrement every headings with one :
https://github.com/SocialGouv/fiches-travail-data/blob/master/src/fetch-data/parseDom.js#L209

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions