nolebase / integrations

A collection of diverse documentation engineering tools | 多元化的文档工程工具合集
https://nolebase-integrations.ayaka.io
MIT License
77 stars 13 forks source link

fix(git-changelog): block element should not be warpped in inline element #197

Closed northword closed 1 month ago

northword commented 1 month ago

before:

Snipaste_2024-05-06_20-01-37

after:

image

northword commented 1 month ago

另外歪个楼,目前的组件获取链接的逻辑是获取 GitHub 链接,但很多时候,我们希望显示个人主页(例如博客),或是一些网站的目标群体其实不是 GitHub ,所以会更希望显示为其他的平台链接,

我们是否有想法改为

  1. 获取 GitHub 链接,若有则返回,无 GitHub 且包含其他则返回第一个。
  2. 直接返回第一个,如果用户需要始终显示 GitHub 的,手动把 map 数据里 GitHub 放在第一位就好。

虽然可以把 GitHub 直接填成其他的,但是似乎不是那么 (规范?),并且无法解决 其他链接和 GitHub 同时放(比如团队页)的情况。

github-actions[bot] commented 1 month ago

✅ Successfully deployed to Netlify

Platform Status URL
Ubuntu Success https://6638d099c26282d037e888ff--nolebase-integrations.netlify.app
Windows Success https://6638d0a64e766ac61d38b370--nolebase-integrations.netlify.app
nekomeowww commented 1 month ago

我们是否有想法改为

  • 获取 GitHub 链接,若有则返回,无 GitHub 且包含其他则返回第一个。
  • 直接返回第一个,如果用户需要始终显示 GitHub 的,手动把 map 数据里 GitHub 放在第一位就好。

可以的,很好的想法