-
Notifications
You must be signed in to change notification settings - Fork 2.3k
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
Bugfix/heading safe guard #179 #188
Bugfix/heading safe guard #179 #188
Conversation
Until angular/protractor#3963 is merged This reverts commit 117d5bf.
…djusting some commentary and spelling/typos
…x/heading to bugfix/heading-safe-guard * commit '47c80f60bae648dcaaa5191841eff07b4b0b5696': fix(heading): fix for headings render making failsafe, adding test, adjusting some commentary and spelling/typos
@jsmartfo thanks for PR. But I've been working on search for ReDoc in another branch and have already refactored that peace of code. Sorry for not letting you know.. |
Until angular/protractor#3963 is merged This reverts commit 117d5bf.
…djusting some commentary and spelling/typos
…anexpress/ReDoc into bugfix/heading-safe-guard Rebase with redoc-search
@jsmartfo thank you! |
Appreciate you taking some of it anyway! Will look to help out more in the future, hope that's okay? Great project |
Would be awesome! Thanks for offering help here 🙌 |
Based off the discussion here #179, adding logic to check if no heading-1 present then reassign the heading-2 to be heading-1.
This allows code to continue without error.
Another variation on this would be to leave the heading-2 the user defined but also create a heading-1 in the background this would however lead to a slight dupe within the menu and docs.