Git Product home page Git Product logo

markdown-image-hosting's Introduction

Markdown Image Hosting

Host all your local markdown image links and use your markdown anywhere.

Description

You can now use your markdown file directly on any blogging platform ๐Ÿ˜ƒ without the hustle of uploading/selecting each image manually ๐Ÿ’ป.

Getting Started

Dependencies

  • node

Installing

Install the app. It will install all your dependencies.

npm install
  • Now make your project on firebase and get your API-keys from there.

  • Make a .env file in the project root dir (imageHosting\.env).

  • And specify the firebase API keys you got from firebase-console here in the .env file

# Firebase configurations in .env file
FIREBASE_API_KEY = ******************
FIREBASE_AUTH_DOMAIN = ******************
FIREBASE_PROJECT_ID = ******************
FIREBASE_STORAGE_BUCKET = ******************
FIREBASE_MESSAGING_SENDER_ID = ******************
FIREBASE_APP_ID = ******************
FIREBASE_MEASUREMENT_ID = ******************

Start the app and specify the markdown file in the arguments

npm start blog/my-blog.md

The parser will parse the markdown files and search for all the images links like ![my-image](./images/image1.png).

Please note that all the local image links should be correct. It's recommended that both the markdown file and the images should be under the same dir**

output output

Now all the images link will be updated with the new one (hosted one).

Help

If some error occurred try opening your markdown before hosting to check all images path are correct. Try keeping markdown and images files under the same dir and then give the markdown path to the app.

License

This project is licensed under the [MIT] License - see the LICENSE.md file for details

markdown-image-hosting's People

Contributors

imranzaheer612 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.