# 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==](https://solidhacks.solid.community/public/demos/markdown.html#lZC9bsMwDIR3PQUBbwVko2vHFh0KtEuQPoAiEZbqmExEKoHfvrLsInNH/uDuvus6+CDNHIrXxGTMMSaB6PwEnudTIhTQO8Ml4y1x2U7SAxjzltFpohEcHNCdNc0IXy5Pge8E7yEpZ3AU4PvwCRI5K1L97o15gqh6kZdhED6n0I9JT8xTn3hb2OYxCLZI9nnwu5N1Nu9Odt6dLDan/4uWfLaPWK9LJdqIR9CIgg174QLeEYi7NbjGFtiXGUkFiqzvP0W0llA5ay/HiFBDChPUIjU6XeXgLy5scR+i69EzadNL1OZrwbyAaN766jrzCw==)

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
