In https://github.com/elastic/observability-docs/pull/4230 I noticed that page subheadings in deeply-nested pages weren't working as expected. The highest heading level I found was h10, but in this PR I added logic for up to h12. Here's an example of before/after this PR:
Before (h10, no formatting)
After (h3, with formatting)
Note: Headings beyond h6 are not technically valid HTML tags, but the build system will create them so we should handle them appropriately.
Request a new doc build by commenting
* Rebuild this PR: `run docs-build`
* Rebuild this PR and all Elastic docs: `run docs-build rebuild`
`run docs-build` is much faster than `run docs-build rebuild`. A `rebuild` should only be needed in rare situations. If your PR continues to fail for an unknown reason, the doc build pipeline may be broken. Elastic employees can check the pipeline status [here](https://buildkite.com/elastic/docs-build).
In support of https://github.com/elastic/observability-docs/pull/4230
In https://github.com/elastic/observability-docs/pull/4230 I noticed that page subheadings in deeply-nested pages weren't working as expected. The highest heading level I found was h10, but in this PR I added logic for up to h12. Here's an example of before/after this PR:
(
h10
, no formatting)(
h3
, with formatting)Note: Headings beyond
h6
are not technically valid HTML tags, but the build system will create them so we should handle them appropriately.