morethanmin / morethan-log

😎 A static blog using notion database
https://morethan-log.vercel.app
MIT License
1.89k stars 1.51k forks source link

fix: mermaid rendering #373

Closed ParkAward closed 1 month ago

ParkAward commented 2 months ago

Description

Modified the logic to use a polling method to wait until the Mermaid library and HTMLCollection are instantiated, and then render.

Changes

  1. Changed the initialization and rendering logic of the Mermaid library to a polling method.
  2. Ensured that the HTML elements containing Mermaid code (with the language-mermaid class) are detected and waited upon until their textContent is set, before performing Mermaid rendering.

Reason for Changes

Testing

Related tickets

https://github.com/morethanmin/morethan-log/issues/303

vercel[bot] commented 2 months ago

@ParkAward is attempting to deploy a commit to the untilled Team on Vercel.

A member of the Team first needs to authorize it.

ParkAward commented 2 months ago

혹시 추가적인 업데이트를 진행하도 될까요?

  1. mermaid 10.9.1 업데이트
  2. mermaid 변환되는 이미지를 노션처럼 변경?
  3. meramid 변환 디자인 dark light 모드 적용?
vercel[bot] commented 1 month ago

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
morethan-log ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jul 22, 2024 11:12am
morethanmin commented 1 month ago

@ParkAward

확인이 너무 늦었습니다. 죄송합니다.

혹시 추가적인 업데이트를 진행하도 될까요?

mermaid 10.9.1 업데이트 mermaid 변환되는 이미지를 노션처럼 변경? meramid 변환 디자인 dark light 모드 적용?

네! 작업해주시면 최대한 빠르게 확인해보겠습니다. 감사합니다.