-
Notifications
You must be signed in to change notification settings - Fork 1
Open
Description
Description
The Gatsby chapters start with one h1 (chapter title), and then have a lot more h1s (sub-chapters). So ideally, to unify this wit the rest of the material, in the Gatsby material we would keep the first h1, and then bump all headers one level down.
Input in HTML
- All occurences of h5 (
<h5></h5>) should be turned into h6 (<h6></h6>) - All occurences of h4 (
<h4></h4>) should be turned into h5 (<h5></h5>) - All occurences of h3 (
<h3></h3>) should be turned into h4 (<h4></h4>) - All occurences of h2 (
<h2></h2>) should be turned into h3 (<h3></h2>) - All occurences of h1 (
<h1></h1>) apart from the first one should be turned into h2 (<h2></h2>) - One occurence of h1 (the first one, which is the chapter title) should remain
Expected output in Wikitext
see above
Example file
- From Gatsby Scrape
- https://test.kewl.org/wiki/IPCC:Wg1:Chapter:Chapter-1
- https://www.kewl.org/IPCC/Gatsby/www.ipcc.ch/report/ar6/wg1/chapter/chapter-1/index.tidy.html
- https://www.kewl.org/IPCC/Gatsby/www.ipcc.ch/report/ar6/wg1/chapter/chapter-1/index.clean.wiki
Additional information
none
Reactions are currently unavailable
Metadata
Metadata
Assignees
Type
Projects
Status
In Progress