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

feat: support non-standard markdownDescription property #23

Merged
merged 1 commit into from
Dec 28, 2023

Conversation

twelvelabs
Copy link
Owner

Adds support for the non-standard markdownDescription property. This property is primarily used by a few LSP language servers (JSON, YAML, etc) to render documentation when hovering over properties in IDEs. They treat description as plain text and escape any markdown present. Schema authors that want rendered markdown must also include markdownDescription.

For now, schemadoc is going to render everything as markdown. I suspect few schemas are bothering with duplicating their descriptions across two props. But for those that do, we should support rendering markdownDescription if present.

Copy link

codecov bot commented Dec 28, 2023

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (a01965f) 87.67% compared to head (88d7a6f) 87.80%.

Additional details and impacted files
@@            Coverage Diff             @@
##             main      #23      +/-   ##
==========================================
+ Coverage   87.67%   87.80%   +0.12%     
==========================================
  Files           9        9              
  Lines         698      705       +7     
==========================================
+ Hits          612      619       +7     
  Misses         64       64              
  Partials       22       22              

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@twelvelabs twelvelabs merged commit 1cf627a into main Dec 28, 2023
3 checks passed
@twelvelabs twelvelabs deleted the markdown-description branch December 28, 2023 18:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant