An Office service that supports add-ins to interact with objects in Office client applications.
Based on my testing directly in Microsoft Word, it appears that Word may be internally treating the first paragraph inside the content control as part of the content control boundary rather than as a normal outline-recognized heading paragraph. This would explain why the first heading returns outlineLevel = 10 and is also not recognized in the Navigation Pane, while subsequent headings work correctly.
As a possible workaround, could you try inserting an empty paragraph before the first heading inside the content control and then check whether the heading is recognized correctly afterward?
For example:
Content Control
Empty paragraph
Heading 1
Body content
As a moderator, I can provide technical guidance and best-practice recommendations based on public documentation, reported issues, and community discussions. However, my testing environment is limited. If the behavior continues after testing the workaround above, I would recommend opening a new thread on GitHub, where engineers and community contributors familiar with the Office JavaScript API may be able to provide more targeted insights.
Reference: Participating in a discussion - GitHub Docs.
Apologies for redirecting you to the development community, and thank you for your understanding.
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.