I stripped out ngx-markdown and tried using marked directly with the same result.
I did have some success loading the markdown with HttpClient and using marked. The prerender fails on the HTTP requests however if i use http://localhost:4300 in the URLs and run another copy of the app while I'm prerendering, it can successfully find the markdown files and renders properly. If i can just figure out why the relative URL calls are failing, I'll be in business. They are supposed to be rewritten to absolute URLs automatically now but it doesn't appear to be working.
Maybe something changed in
ngx-markdown
? It has been a while since I wrote this blog post (> 2 years) maybe it also need some other adjustments...I stripped out
ngx-markdown
and tried usingmarked
directly with the same result.I did have some success loading the markdown with HttpClient and using
marked
. The prerender fails on the HTTP requests however if i usehttp://localhost:4300
in the URLs and run another copy of the app while I'm prerendering, it can successfully find the markdown files and renders properly. If i can just figure out why the relative URL calls are failing, I'll be in business. They are supposed to be rewritten to absolute URLs automatically now but it doesn't appear to be working.Happy to hear you made progress. Can't help unfortunately, it's been a while since I don't used Angular for SSR. Good luck 🤞