storybook JSDoc/TSDoc make Markdown jump line instead of inlining

sf6xfgos  于 5个月前  发布在  其他
关注(0)|答案(1)|浏览(75)

是否有办法配置Markdown TSDoc/JSDoc来跳行?

/**
* Prefetch the page in the background.
* Any <Link /> that is in the viewport (initially or through scroll) will be preloaded.
* Prefetch can be disabled by passing prefetch={false}.
* Pages using Static Generation will preload JSON files with the data for faster page transitions.
*
* @default true
*/
  prefetch?: boolean;

我希望上面的内容能够跳行。当前的行为是将所有内容放在一行中。

/**
* Prefetch the page in the background.
* 
* Any <Link /> that is in the viewport (initially or through scroll) will be preloaded.
* 
* Prefetch can be disabled by passing prefetch={false}.
* 
* Pages using Static Generation will preload JSON files with the data for faster page transitions.
*
* @default true
*/
  prefetch?: boolean;

我需要将上面的内容写成跳行的形式,但这会占用很多空间,而且实际上并没有变得更好。
默认行为不应该改变吗?

0vvn1miw

0vvn1miw1#

描述块简单地将docgen注解视为markdown。如果有人对此感兴趣,可以进行彻底的改革。

相关问题