Skip to content
This repository has been archived by the owner on May 4, 2019. It is now read-only.

Change headings from h3 to h1 #82

Open
josieg opened this issue Nov 13, 2018 · 0 comments
Open

Change headings from h3 to h1 #82

josieg opened this issue Nov 13, 2018 · 0 comments

Comments

@josieg
Copy link

josieg commented Nov 13, 2018

Description

Currently, headings are being pulled in at the heading level that OpenStax has them set at. In CNX, heading levels start at h2. It would be nice if, during import, headings were bumped up two levels so that the top level heading in a chapter was h1.

This would allow people to take advantage of h1-related features in Pressbooks (e.g., two-level TOC and collapsed headings) without having to go through and change all of the headings.

Preferred behaviour

It would be prefered if, when importing an OpenStax book, headings were changed to start at heading 1. That would mean H3 changing to H1, H4 changing to H2, etc.

Actual behaviour

Currently, headings import at the same level as they are set in the CNX platform, which used h3 as the first heading level for chapter content.

Steps to reproduce the problem

  1. Import an OpenStax book into Pressbooks.
  2. Look at the book in Pressbooks.
  3. See that top-level headings are the same level as they appear in the OpenStax CNX platform (Heading 3)

System Information

  • Openstax Import for Pressbooks: [Enter POI Version here]
  • Pressbooks: [Enter PB Version number here]
  • WordPress: [Enter WP Version number here]
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant