markopolis: Mermaid chart not working on 0.3.0 docker

Version 0.3.0 docker

I just tried a mermaid chart and I get the following error

ERROR:markopolis.scripts.consume:Error getting remote content for Japan-Itinerary: 404 Client Error: Not Found for url: https://my.domain/notes/Japan-Itinerary/raw INFO:markopolis.scripts.consume:File Japan-Itinerary.md marked for publishing (new or unable to fetch remote content).

I noticed on the url the /notes/ Not sure if it is supposed to be there, but my environment variable MARKOPOLIS_TITLE=“Notes”

Code for the mermaid chart

```mermaid
flowchart LR

  

A[Osaka 7-8] --> B[Tokyo 9-11]
B -.Nagano .-> C[Matsumoto]
C -.Nagano & Toyama.-> D[Takayama 12] <--> D1(Hida no Sato village)
B -.Nagano & Toyama.-> D
C <-.bus.-> D
D --Toyama---> E <--> D2([Onsen 14]) --> F
E[Kanazawa 13] ---> F[Kyoto 15-18] <--> F2(Uji) <--> F1(Nara)
F <-.-> F4(Himeji)```

It works even here on Github (same sample just for the sake of the example)

flowchart LR

  

A[Osaka 7-8] --> B[Tokyo 9-11]
B -.Nagano .-> C[Matsumoto]
C -.Nagano & Toyama.-> D[Takayama 12] <--> D1(Hida no Sato village)
B -.Nagano & Toyama.-> D
C <-.bus.-> D
D --Toyama---> E <--> D2([Onsen 14]) --> F
E[Kanazawa 13] ---> F[Kyoto 15-18] <--> F2(Uji) <--> F1(Nara)
F <-.-> F4(Himeji)

About this issue

  • Original URL
  • State: closed
  • Created 2 years ago
  • Comments: 22 (13 by maintainers)

Most upvoted comments

Have revamped the UI to handle large images and mermaid diagrams better. The overall layout should also scale nicely to larger resolutions. Let me know if this works.

Cheers! I’m away for a few days but once I’m back I’ll update and give some feedback on how this is working on my 3840x2160 screen.

Have revamped the UI to handle large images and mermaid diagrams better. The overall layout should also scale nicely to larger resolutions. Let me know if this works.

Gotcha. Thank you so much. Appreciate the input. This gave me some clarity. I’ll be devoting a lot of time today to revamp the UI a bit so that everything renders nicely. I’ll be resolving the other open issues as well. Check back for a new release later today.

Found the bug ! Fixed it. Pull 0.3.1 Screenshot 2024-08-15 at 2 14 41 PM

Okay I just checked with your specific mermaid chart and it doesn’t load. I will debug this. Thank you so much for testing everything out. This is very useful for me. Thanks for all the help.

Sorry still doesn’t seem to be working for me. I am just getting a blank. Looking at the page’s source code on the browser (Firefox 129) it seems to be there, but not being rendered.

Btw keep up the good work, sure there’s a few things that need fixing but you are getting a lot done very quickly.