Preview Examples
By JulianFun123 (@JulianFun123)
View and share code snippets on Pastefy.
[{"name":"README.md","contents":"# My Sample Markdown File\n\nWelcome to this example markdown document!\n\n## Table of Contents\n\n1. [Introduction](#introduction)\n2. [Features](#features)\n3. [Usage](#usage)\n4. [Code Example](#code-example)\n5. [Conclusion](#conclusion)\n\n---\n\n## Introduction\n\nMarkdown is a lightweight markup language that allows you to write formatted text using a plain-text editor.\n\n## Features\n\n- **Simple syntax**\n- Easy to **read** and **write**\n- Converts to HTML\n- Supports:\n - Headings\n - Lists\n - Links\n - Images\n - Code blocks\n\n## Usage\n\nTo write in markdown, you just need a `.md` file and a basic text editor.\n\nYou can also preview it in many editors like VS Code or on platforms like GitHub.\n\n## Code Example\n\nHere’s a quick code snippet in JavaScript:\n\n```javascript\nfunction greet(name) {\n console.log(`Hello, ${name}!`);\n}\ngreet(\"Pastefy!\");\n```"},{"name":"usa.geojson","contents":"{\n \"type\": \"FeatureCollection\",\n \"features\": [\n {\n \"type\": \"FeatureCollection\",\n \"features\": [\n {\n \"type\": \"Feature\",\n \"id\": 1,\n \"properties\": {\n \"ID\": 0\n },\n \"geometry\": {\n \"type\": \"Polygon\",\n \"coordinates\": [\n [\n [-90,35],\n [-90,30],\n [-85,30],\n [-85,35],\n [-90,35]\n ]\n ]\n }\n }\n ]\n },\n {\n \"type\": \"Feature\",\n \"properties\": {\n \"id\": 1,\n \"name\": \"Central Park\",\n \"type\": \"Park\",\n \"city\": \"New York\"\n },\n \"geometry\": {\n \"type\": \"Polygon\",\n \"coordinates\": [[\n [-73.9731, 40.7648],\n [-73.9814, 40.7681],\n [-73.9580, 40.8006],\n [-73.9498, 40.7968],\n [-73.9731, 40.7648]\n ]]\n }\n },\n {\n \"type\": \"Feature\",\n \"properties\": {\n \"id\": 2,\n \"name\": \"Broadway Route\",\n \"type\": \"Road\",\n \"length_km\": 2.5\n },\n \"geometry\": {\n \"type\": \"LineString\",\n \"coordinates\": [\n [-73.9819, 40.7681],\n [-73.9780, 40.7655],\n [-73.9740, 40.7625]\n ]\n }\n },\n {\n \"type\": \"Feature\",\n \"properties\": {\n \"id\": 3,\n \"name\": \"Empire State Building\",\n \"type\": \"Landmark\",\n \"height_m\": 381\n },\n \"geometry\": {\n \"type\": \"Point\",\n \"coordinates\": [-73.9857, 40.7484]\n }\n }\n ]\n}\n"},{"name":"mermaid.mmd","contents":"---\nconfig:\n sankey:\n showValues: false\n---\nsankey-beta\n\nAgricultural 'waste',Bio-conversion,124.729\nBio-conversion,Liquid,0.597\nBio-conversion,Losses,26.862\nBio-conversion,Solid,280.322\nBio-conversion,Gas,81.144\nBiofuel imports,Liquid,35\nBiomass imports,Solid,35\nCoal imports,Coal,11.606\nCoal reserves,Coal,63.965\nCoal,Solid,75.571\nDistrict heating,Industry,10.639\nDistrict heating,Heating and cooling - commercial,22.505\nDistrict heating,Heating and cooling - homes,46.184\nElectricity grid,Over generation / exports,104.453\nElectricity grid,Heating and cooling - homes,113.726\nElectricity grid,H2 conversion,27.14\nElectricity grid,Industry,342.165\nElectricity grid,Road transport,37.797\nElectricity grid,Agriculture,4.412\nElectricity grid,Heating and cooling - commercial,40.858\nElectricity grid,Losses,56.691\nElectricity grid,Rail transport,7.863\nElectricity grid,Lighting & appliances - commercial,90.008\nElectricity grid,Lighting & appliances - homes,93.494\nGas imports,Ngas,40.719\nGas reserves,Ngas,82.233\nGas,Heating and cooling - commercial,0.129\nGas,Losses,1.401\nGas,Thermal generation,151.891\nGas,Agriculture,2.096\nGas,Industry,48.58\nGeothermal,Electricity grid,7.013\nH2 conversion,H2,20.897\nH2 conversion,Losses,6.242\nH2,Road transport,20.897\nHydro,Electricity grid,6.