Render lists, code, equations, ... via PHP

Hello,

is there some PHP code that converts an API response message including lists, code, equations, … to nice HTML output?

E.g.

`some code`

to

<code>some code</code>

Thanks for your support
Andreas

You need Markdown to HTML conversion:

Those should be a good start.

2 Likes

Thank you very much Brian. Two great tips. Michelf is good but Parsedown is even better. Especially concerning ordered lists and code. That’s where Michelf fails (e.g. 1. 1. 1. … instead of 1. 2. 3. …).