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

[页面渲染] 无法渲染mermaid #260

Closed
Angel0726 opened this issue May 21, 2022 · 7 comments
Closed

[页面渲染] 无法渲染mermaid #260

Angel0726 opened this issue May 21, 2022 · 7 comments
Assignees
Labels
bug Something isn't working enhancement New feature or request
Milestone

Comments

@Angel0726
Copy link

无法渲染mermaid的代码块。
notion原网址:https://jeweled-trilby-556.notion.site/d6413f5c6ee44f799ce7fed0488cf594
博客网址:https://coolnext.vercel.app/article/d6413f5c-6ee4-4f79-9ce7-fed0488cf594#e72f195b498645ab901e7e6ccb409de4
image

描述bug
简单说明bug的现象、相关的错误提示、日志等

复现步骤
出现这个bug的操作步骤

期望的正常结果
希望按这个步骤,正常操作结果是什么

截图
相关的页面,应该用结果

环境

  • 操作系统: [例如. iOS, Android, macOS, windows]
  • 浏览器 [例如. chrome, safari, firefox]
  • 版本 [e.g. 22]

补充说明
与问题相关的其它说明

@Angel0726 Angel0726 added the bug Something isn't working label May 21, 2022
@tangly1024
Copy link
Owner

tangly1024 commented May 23, 2022

感谢你的提议.
NotionNext使用 react-notion-x 项目来渲染Notion中的内容. Mermaid并不是默认支持的格式;

react-notion-x项目中,这个问题也暂时未被解决。
ref: NotionX/react-notion-x#188

Mermaid我之前从未接触过,期待有更厉害的开发者能协助解决此问题。
PrismJS/prism#3050
PrismJS/prism#2852

建议是:或许能用图片形式代替?

@tangly1024 tangly1024 added the enhancement New feature or request label May 23, 2022
@Angel0726
Copy link
Author

感谢你的提议.
NotionNext使用 react-notion-x 项目来渲染Notion中的内容. Mermaid并不是默认支持的格式;

react-notion-x项目中,这个问题也暂时未被解决。
ref: NotionX/react-notion-x#188

Mermaid我之前从未接触过,期待有更厉害的开发者能协助解决此问题。
PrismJS/prism#3050
PrismJS/prism#2852

建议是:或许能用图片形式代替?

不太清楚。不过我知道hexo是可以渲染的

@tangly1024 tangly1024 changed the title 无法渲染mermaid [页面渲染] 无法渲染mermaid May 25, 2022
@tangly1024 tangly1024 added this to the v3.6.0 milestone Nov 17, 2022
@tangly1024
Copy link
Owner

@Angel0726
Copy link
Author

博客网址:https://coolnext.vercel.app/article/d6413f5c-6ee4-4f79-9ce7-fed0488cf594#e72f195b498645ab901e7e6ccb409de4

我更新了你的最新分支
image
但是博客还是现示3.4.2,且mermaid还是不能进行渲染。是因为没有更新成功吗?

@Angel0726
Copy link
Author

博客网址:https://coolnext.vercel.app/article/d6413f5c-6ee4-4f79-9ce7-fed0488cf594#e72f195b498645ab901e7e6ccb409de4

我更新了你的最新分支 image 但是博客还是现示3.4.2,且mermaid还是不能进行渲染。是因为没有更新成功吗?

image

@tangly1024
Copy link
Owner

hi
不知道是出于什么原因,你的vercel 发布版本状态是inactive, 最新的代码只是以preview模式发布,而非正式的production版本

建议

尝试在后台 您的发布历史列表中 点击右边的“三点按钮” 并选择 Promote to Production

204288692-d4340418-e30b-4cff-8067-887e20d7ef49

@Angel0726
Copy link
Author

hi 不知道是出于什么原因,你的vercel 发布版本状态是inactive, 最新的代码只是以preview模式发布,而非正式的production版本

建议

尝试在后台 您的发布历史列表中 点击右边的“三点按钮” 并选择 Promote to Production

204288692-d4340418-e30b-4cff-8067-887e20d7ef49

Promote to Production之后,博客显示成了你的内容。有办法进行回滚操作吗

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants