Solid Hacks
  • Solid Hacks
  • Chapter 1 - Static Pages
    • Hosting a Web Page On Your Pod
    • Hosting a One Page Game
    • URL Shortening
    • Creating a Realtime Markdown Editor
    • Saving a Markdown Document to Your Pod
    • Hosting Snippets
  • Chapter 2 - Working With Pods
    • Solid from the Console
    • Solid from the Command Line
    • Creating Group URIs
    • Hosting a pod on your own domain with CNAME
    • Interacting With Crawlers
    • Logging in with a Public Key
  • Chapter 3 - Working With Panes
    • Creating a Personal Diary
    • Creating a Slideshow
    • Creating an Audio playlist
    • Create a Presentation From Text
  • Chapter 4 - Integrations
    • Integrating Solid with Mastodon
    • Integrating with IPFS
    • Integrating Solid with Facebook
    • Integrating with Amazon S3
    • Integrating With Jitsi
  • Appendices
    • Appendix A : Solid Resources
    • Appendix B : Solid Communities
    • Appendix C : Utilities
Powered by GitBook
On this page
  • Introduction
  • The Hack
  • Demo
  • Exercises
  1. Chapter 1 - Static Pages

Saving a Markdown Document to Your Pod

PreviousCreating a Realtime Markdown EditorNextHosting Snippets

Last updated 6 years ago

Introduction

This hack combines two previous hacks. Creating a Realtime Markdown Editor and 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.

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

And you're done!

Demo

Exercises

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

https://solid.gitbook.io/solid-hacks/section-1/creating-a-realtime-markdown-editor
https://solid.gitbook.io/solid-hacks/section-1/url-shortening
https://solidhacks.solid.community/public/demos/markdown.html#lZC9bsMwDIR3PQUBz7LRtWOLDgXaJUgfQJEIS7VNpiKVwG9fWXaRuSN/cHffdR28k2YOxWtiMuYck0B0fgLPyyURCuid4ZrxlrjsJ+kBjHnN6DTRCA5O6GZNC8Kny1PgO8FbSMoZHAX4On2ARM6KVL97Y6LqVZ6HQXhOoR+TXpinPvG+sM1hEGyB7NPgDx/rbD587HL4WGw+/5UsebaPSC9rpdlpR9CIgg155QLeEYi7NbDGFdiXBUkFimzv30W0FlAZayfniFAjChPUEjU63eTgLyzsYR+i29EzadNL1OafgnkF0bx31XXmFw==
https://solidhacks.solid.community/public/demos/markdown_doc.html