2 ms·
The claim is correct, it supports a subset of HTML and CSS[0]. You can even check the demo page[1], it has examples with HTML and inline styles. [0]: https://g
by tngranados 4y ago
The claim is correct, it supports a subset of HTML and CSS[0]. You can even check the demo page[1], it has examples with HTML and inline styles.
[0]: https://github.com/vercel/satori#html-elements https://github.com/vercel/satori#html-elements
[1]: https://og-playground.vercel.app https://og-playground.vercel.app
- gnrlst 4y ago[0] "supports a limited subset of HTML and CSS features" (and it still requires jsx-esque syntax with curly braces) [1] uses JSX So, yeah, my comment still stands.
- shuding 4y agoJSX here is just a way to represent the HTML information because you can't write HTML in JavaScript. It is NOT required. But with the JSX representation, the lib doesn't have to parse it again, and it's using it as JSON, check the "Use without JSX" section in the docs: https://github.com/vercel/satori#use-without-jsx https://github.com/vercel/satori#use-without-jsx