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

Support setext style md headings in menu item parsing #629

Open
MrArnoldPalmer opened this issue Nov 9, 2021 · 4 comments
Open

Support setext style md headings in menu item parsing #629

MrArnoldPalmer opened this issue Nov 9, 2021 · 4 comments

Comments

@MrArnoldPalmer
Copy link
Contributor

Parsing md headers from the readme + api reference into a packages navigation items currently does not support setext style headings. This causes these items to not be displayed in the left nav of a package page.

mergify bot pushed a commit that referenced this issue Nov 9, 2021
Break up the rendering of a packages documentation into multiple pages.
The root package page now renders the readme, and each type within the
packages API reference is rendered on its own page. Items within the
readme and types are still linkable via hash links that are scrolled to
by the PackageDocs component.

The rendering is broken up by splitting the incoming markdown on the
`API Reference` header and then on subsequent headers within the api
reference markdown string. These are then parsed into menu items and a
hash map of `typeid -> type markdown content`.

Adds unit tests for markdown parsing logic to ensure outputs remain
stable.

Removes 1MB size limit for rendering markdown documents.

NOTE: [`setext`](https://github.github.com/gfm/#setext-headings) style md
headings are not currently supported and will be added in a follow up. See
#629

fix: #560
@github-actions
Copy link
Contributor

github-actions bot commented Jan 9, 2022

This issue is now marked as stale because it hasn't seen activity for a while. Add a comment or it will be closed soon.

@addihorowitz
Copy link
Contributor

@MrArnoldPalmer do you have an example you can share so that it will be easy to reproduce and resolve?

@MrArnoldPalmer
Copy link
Contributor Author

settext headings are detailed in the github flavored markdown specification. As far as we know there is no package currently on construct-hub that uses them, and this should be superceded by a migration to a JSON format from jsii-docgen.

@github-actions
Copy link
Contributor

This issue is now marked as stale because it hasn't seen activity for a while. Add a comment or it will be closed soon. If you wish to exclude this issue from being marked as stale, add the "backlog" label.

@github-actions github-actions bot added the stale label Mar 13, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants