Saving a Markdown Document to Your Pod

Introduction

This hack combines two previous hacks. Creating a Realtime Markdown Editor and URL shortening.

https://solid.gitbook.io/solid-hacks/section-1/creating-a-realtime-markdown-editor

https://solid.gitbook.io/solid-hacks/section-1/url-shortening

By combing these two you can save Mardown documents using just a URL. The reason is that the markdown editor can save the contents in the query string.

The Hack

As before we are going to create a url shortener. This time we will past in the following long URL.

https://solidhacks.solid.community/public/demos/markdown.html#lZC9bsMwDIR3PQUBz7LRtWOLDgXaJUgfQJEIS7VNpiKVwG9fWXaRuSN/cHffdR28k2YOxWtiMuYck0B0fgLPyyURCuid4ZrxlrjsJ+kBjHnN6DTRCA5O6GZNC8Kny1PgO8FbSMoZHAX4On2ARM6KVL97Y6LqVZ6HQXhOoR+TXpinPvG+sM1hEGyB7NPgDx/rbD587HL4WGw+/5UsebaPSC9rpdlpR9CIgg155QLeEYi7NbDGFdiXBUkFimzv30W0FlAZayfniFAjChPUEjU63eTgLyzsYR+i29EzadNL1OafgnkF0bx31XXmFw==

Save the shortened file, to a file name of your choosing, an example would be u/markdown_doc.html

And you're done!

Demo

https://solidhacks.solid.community/public/demos/markdown_doc.html

Exercises

Create some markdown docs, save them to your pod, and share the shortened URLs

Last updated