analogjs / analog

The fullstack meta-framework for Angular. Powered by Vite and Nitro
https://analogjs.org
MIT License
2.62k stars 252 forks source link

Markdown content not statically rendered #397

Closed zawasp closed 1 year ago

zawasp commented 1 year ago

Please provide the environment you discovered this bug in.

@analogjs/content: "^0.2.0-beta.8", @analogjs/router: "^0.2.0-beta.7", @analogjs/platform: "^0.2.0-beta.7"

Which area/package is the issue in?

content

Description

When prerendering static markdown routes, the generated html file does not contain the rendered markdown content. Instead, the markdown angular component is present in the generated html file.

See the repo at https://github.com/zawasp/analogjs-test and the served content from dist/analog/public at https://analogjs-test.pages.dev/about. The About markdown page source contains <analog-markdown ngh="0"><div class="analog-markdown"></div></analog-markdown> instead of the markdown content.

Please provide the exception or error you saw

No response

Other information

No response

I would be willing to submit a PR to fix this issue

henriquecustodia commented 1 year ago

Same here

brandonroberts commented 1 year ago

I think I know what's going on here. The template for the internal markdown component isn't being compiled in the library, so we may need to adjust the compilation mode.