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

Convert HTML to markdown format for Dokka compatiblity #136

Closed
kggilmer opened this issue Mar 4, 2021 · 2 comments
Closed

Convert HTML to markdown format for Dokka compatiblity #136

kggilmer opened this issue Mar 4, 2021 · 2 comments
Assignees
Labels
feature-request A feature should be added or improved. good-first-task Good for newcomers

Comments

@kggilmer
Copy link
Contributor

kggilmer commented Mar 4, 2021

Unlike javadoc, Dokka does not support embedded HTML in comments. The Smithy spec specifies that documentation is specified in CommonMark, of which HTML is a subset. In practice, most if not all AWS docs appear to be HTML documents.

When HTML is embedded in Dokka comments, the IDE does not display any content wrapped in tags. The short term solution is to simply remove most common HTML tags from the HTML documentation so that it is visiable to the user. However this destroys formatting and other important information. The better solution is to convert HTML markup into markdown.

From a brief search there seem to be a few JVM libraries that do this. Unsure if they are suitable or a homegrown solution is needed.

Acceptance Criteria: HTML docs are translated into Markdown such that important details and basic formatting are preserved from the HTML.

internal id: 177053427

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature-request A feature should be added or improved. good-first-task Good for newcomers
Projects
None yet
Development

No branches or pull requests

3 participants