How can I get HTML instead of MARKDOWN?

System Information
  • Strapi Version: v3.6.0-beta.0
  • Operating System: linux(whatever)
  • Database: sqlite(default)
  • Node Version: v14.16.0
  • NPM Version: v6.14.11
  • Yarn Version:

I want to get Html to used in my miniprogram(which is difficulty to transform Markdown). So I rewrite API file like this, in erery file, and maybe there will be trouble.

Is there a better way? much thanks!

You could use a markdown converter etc, so you write markdown and it turns it into HTML ?

I don’t understand. You mean I could use markdown converter or other lib in my page?

Yeah, so what i done on my project, is to use ngx-markdown Though I use angular so find your flavour for your frontend.

Then return markdown into the library and it renders html.

It is first choice to do that, but my situation is different. Because my page is in Minipaogram in wechat, like a inside page in app, its difficulty to transform.

I make the API become to this

Alright :slightly_smiling_face: Glad you got it working or converted then.