VSCode has for .md markdown files, "Open Preview". How to get that same functionality? Is it included? I looked through the playground examples and the API, but do not see anything. Thanks.
This functionality is not part of Monaco.
I wouldn't bother with trying to get the preview into Monaco itself; just grab the markdown content from the editor, pass it through a markdown rendering engine like markdown-it, and preview the generated html in a iframe or similar. See the markdown-it demo for inspiration
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With