Using one of the many JS editors in something like codepen.io works well:
eg https://codepen.io/quill/full/KzZqZx or https://codepen.io/JessieWooten/full/wYObEX
Or one of the many online markdown editors (https://markdownlivepreview.com/, https://dillinger.io/)