Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

validate first Page in chapter has intro class #119

Draft
wants to merge 8 commits into
base: main
Choose a base branch
from

Conversation

philschatz
Copy link
Member

@philschatz philschatz commented Dec 7, 2021

To-Do

  • verify it works in books with units
  • verify it doesn't give false positives for any of our books
  • support the class="unit-opener" or something like that class

@@ -170,10 +170,12 @@ export class PageNode extends Fileish {
}
})))

const introClasses = ['introduction', 'unit-opener']
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think a unit-opener can only occur inside a unit and a chapter introduction can only exist in a chapter. Lemme ask why the term "unit-opener" was used instead of "introduction" inside a Unit

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants