Skip to content

A NodeJS Application that transcripts Markdown to HTML, supporting MathJax and with GitHub flavoured style. Serving itself as a server.

Notifications You must be signed in to change notification settings

joaoofreitas/markdown-webserver

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

29 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Markdown Webserver 📄

A NodeJS Application that transcripts Markdown to HTML, supporting MathJax and with Github CSS Markdown like a style. Serving itself as a server.

What does it do? 🤠

This application serves has a Markdown Viewer.

It's perfect for publishing fast websites, convert from Markdown to HTML and Custom CSS it or even post a website quickly, based on you application documentation.

How is it build? 🔨

This application is build using NodeJS, Express for easy hosting, ShowdownJS for the easy transcription. Github-markdown-css for the CSS like style, MathJax for Math support, and HighlightJS for code highlighting.

MathJax

HighlightJS

ExpressJS

ShowdownJS

Github-Markdown-CSS

Installation 📲

To install this repository simply:

  1. Make sure you have npm (Node Package Manager)
  2. Download the repository.

git clone https://github.com/joaoofreitas/markdown-webserver.git

  1. Enter to the folder in the terminal

cd markdown-webserver

  1. Install the dependencies:

npm install

  1. Run the server

npm start

  1. Visit the website in your browser in localhost
All done!

Running your own Markdown 📟

  1. Place your .md file in files/mdstructure/ and rename it has markdown.md .
  2. Run the server with npm start

NOTE: Make sure you are inside the repository before running npm start. Otherwise you will get an error.

Docker 🐳

This application has also a Docker image so you can run it and deploy it in a Docker Container. Or even building it with an Nginx Proxy and a Let's Encrypt Proxy Companion.

For that you just need do build the docker image with docker build inside the program folder.

Example:`

user@localhost ~/markdown--webserver docker build -t <IMAGE_NAME> .

To run the container:

docker run -p 80:80 <IMAGE_NAME>

About

A NodeJS Application that transcripts Markdown to HTML, supporting MathJax and with GitHub flavoured style. Serving itself as a server.

Topics

Resources

Stars

Watchers

Forks