jfcere / ngx-markdown

Angular markdown component/directive/pipe/service to parse static, dynamic or remote content to HTML with syntax highlight and more...
https://jfcere.github.io/ngx-markdown
MIT License
1.06k stars 182 forks source link

error in safari 15.3 mac os 12.2.1 #534

Open livecopilot opened 2 months ago

livecopilot commented 2 months ago

error in safari 15.3 mac os 12.2.1. angular 18.0.6

"mermaid": "^10.9.1", "ngx-markdown": "^18.0.0", "prismjs": "^1.28.0",

error msg: Error: [ngx-markdown] When using the mermaid attribute you have to include Mermaid files to angular.json or use imports. See README for more information renderMermaid — 784.e8731996ab8747ab.js:1:41488 render — 784.e8731996ab8747ab.js:1:37593 (匿名函数) — 784.e8731996ab8747ab.js:1:44282 generatorResume C — main.7f5abef701198ee6.js:1:6130758 Be — main.7f5abef701198ee6.js:1:6130979 onInvoke — main.7f5abef701198ee6.js:1:4761618 run — polyfills.af626ee477947dbd.js:1:14417 (匿名函数) — polyfills.af626ee477947dbd.js:1:25528 onInvokeTask — main.7f5abef701198ee6.js:1:4761433 runTask — polyfills.af626ee477947dbd.js:1:15067 J — polyfills.af626ee477947dbd.js:1:21795 invokeTask — polyfills.af626ee477947dbd.js:1:20849 Z — polyfills.af626ee477947dbd.js:1:4822 x — polyfills.af626ee477947dbd.js:1:5110

and chrome is ok。 safari new version (17.6) is ok. it's very strange

jfcere commented 2 months ago

Hi @livecopilot,

Did you add the mermaid file to the scripts section of your angular.json as specified in the link below?

https://github.com/jfcere/ngx-markdown?tab=readme-ov-file#diagrams-tool

livecopilot commented 2 months ago

Hi @livecopilot,

Did you add the mermaid file to the scripts section of your angular.json as specified in the link below?

https://github.com/jfcere/ngx-markdown?tab=readme-ov-file#diagrams-tool

Yes,But it's do not work in safari 15.3