A NodeJS Application that transcripts Markdown to HTML, supporting MathJax and with Github CSS Markdown like a style. Serving itself as a server.
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.
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.
To install this repository simply:
- Make sure you have npm (Node Package Manager)
- Download the repository.
git clone https://github.com/joaoofreitas/markdown-webserver.git
- Enter to the folder in the terminal
cd markdown-webserver
- Install the dependencies:
npm install
- Run the server
npm start
- Visit the website in your browser in localhost
- Place your .md file in files/mdstructure/ and rename it has markdown.md .
- Run the server with npm start
NOTE: Make sure you are inside the repository before running npm start. Otherwise you will get an error.
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>