I am trying to create a client-side editor that allows the end user to create content in html or markdown. The user has two tabs for switching between them. I managed to find javascript that converts markdown to html, so if a user writes markdown and switches to the html tab, html equivilant is displayed. I could not find javascript that converts html to markdown, only a python script.
The python script is obviously a server. Tabs are just hyperlinks from a script. Is there any way to convert markdown HTML code when a user clicks on a tab?
source
share