Creating a Realtime Markdown Editor
Last updated
Last updated
This hack again builds on the previous hack.
https://solid.gitbook.io/solid-hacks/section-1/hosting-a-web-page-on-your-pod
This time we will create a realtime markdown editor. This page is more complex and contains several files. However there is a trick that will enable us to use the same one page pattern as before. And that is to use the <base>
tag.
Browse to your solid pod. Within your public
create a webpage called markdown.html with the databrowser.
Cut and paste the following file to your page.
https://raw.githubusercontent.com/jbt/markdown-editor/master/index.html
However we are going to add one additional line to mimic the base. Beneath the HTML tag add.
<base href="
https://jbt.github.io/markdown-editor/
">
And we're done. Congratulations, you have now made a useful app. A realtime markdown editor!
https://solidhacks.solid.community/public/demos/markdown.html
As a step further try and create some of the markdown editors below. See what issues come up. Or try some other static apps.
https://github.com/joemccann/dillinger
https://github.com/tylingsoft/markdown-plus
https://github.com/oscarmorrison/md-page https://casual-effects.com/markdeep/features.md.html