-
Notifications
You must be signed in to change notification settings - Fork 19
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
fix: respect empty lines in example block #128
base: main
Are you sure you want to change the base?
Conversation
Deploying untyped with Β Β Cloudflare Pages
|
Codecov ReportAll modified and coverable lines are covered by tests β
Additional details and impacted files@@ Coverage Diff @@
## main #128 +/- ##
==========================================
- Coverage 57.90% 57.88% -0.03%
==========================================
Files 18 18
Lines 1872 1871 -1
Branches 284 284
==========================================
- Hits 1084 1083 -1
Misses 779 779
Partials 9 9 β View full report in Codecov by Sentry. |
title: "", | ||
tsType: "'src' | 'root'", | ||
description: "", | ||
tags: ["@note This is a note.", "```js\nexport default secret\n```"], |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Shouldn't inline code go into the description?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That's a good question. I don't know. What do you think? π€·ββοΈ
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
But because there is the @
, the title and description are the content above
see https://github.com/unjs/untyped/blob/main/src/loader/babel.ts#L253
π Linked issue
β Type of change
π Description
This PR allow blank lines within example block.
related to unjs/h3#673 and to unjs/h3#672 where the extra line was always removed.
Previously, blank lines was automatically removed unless you use triple ` (backticks) to define the block. Now, you can write
and it will be rendered as
Before it was rendered as
π Checklist