(stack): (header tag breaking jsii-doc)
Describe the issue
The header tags in this inline documentation are breaking jsii-docgen generated docs because they're being added as H2 tags on pages where they should probably H4 (if even headers at all). I know this isn't necessarily an AWS CDK issue, but if the header tags aren't really needed, it seems like an easy fix to remove it.
I mean does this really need to be H2? 😅
Links
https://github.com/aws/aws-cdk/blob/6a7a24afcc1ebebf71c267b890732a455e865cc8/packages/aws-cdk-lib/core/lib/stack.ts#L1174
Can you share more details or the links about the broken doc?
Can you share more details or the links about the broken doc?
I don't have links, but here's a screenshot below. This is the result of running a construct that extends Stack through jsii-docgen
This is resolved if anyone is looking in the future 😅 . main properly uses @example for tsdocs.
https://github.com/aws/aws-cdk/blob/main/packages/aws-cdk-lib/core/lib/stack.ts#L72