Need help with markserv?
Click the “chat” button below for chat support from the developer who created it, or find similar developers for support.

About the developer

367 Stars 67 Forks MIT License 299 Commits 29 Opened issues


🏁 serve markdown as html (GitHub style), index directories, live-reload as you edit

Services available


Need anything else?

Contributors list

Markserv Logo

:checkered_flag: serve markdown as html (GitHub style), index directories, and live-reload as you edit

Gitter CHANGELOG Build Status Coverage Status All Contributors Npm Version XO code style Known Vulnerabilities

Markserv Demo

:sparkles: Features

  • Markdown content rendered as HTML
  • GitHub flavor CSS and Syntax Highlighting
  • Just in Time Templating: Markdown, HTML & LESS
  • LiveReload as you edit
  • Directory indexes
  • MIME Type file support

Supporting: MathJax, Chinese Characters, Table of Contents, Tables, Heading Anchors

Markserv directory index

:computer: Installation

$ npm i -g markserv


$ yarn global add markserv

:joystick: Usage

To start Markserv from the CLI

# Open closest
$ readme

Open file

$ markserv

Open a directory

$ markserv node_modules

Markserv CLI Splash

Start Markserv and open a file or directory.

# File
$ markserv ./path/to/


$ markserv ./

Start Markserv and open the closest file in the browser:

$ readme

:zap: Live Reload

To see real-time updates as you save your markdown files, you will need to install the LiveReload plugin for your browser:

With the Live Reload plugin installed and turned on, you should see the page reloading as you save your Markdown file.

Markserv Live Reload

:link: Markdown Links

You can link to an external Markdown file in the same way that you use GitHub Wiki links. You can use the example code here to see how external links work.

Example code:

[Skateboarding Dog!](tests/

Example link:

Skateboarding Dog!

:stopwatch: Just in Time Templating

Markserv allows you to include nested content. Templates are fetched and rendered when you request them in your browser. The

of includes is set to

If you would like to look at an example, you can look in the tests/templates directory of this repo.

To see the server output of this templating example:

$ git [email protected]/f1lt3r/markserv.git
$ cd markserv
$ markserv tests/templates/index.html

Include Markdown

Note: Any markdown files that you include will be transformed to HTML.


## Qux

And Markserv renders the following content:

# Include Markdown
{markdown: foo/bar/baz/}

The server response will be:

Include Markdown

Foo Bar

Include HTML




And Markserv renders the following content:

# Include Markdown
{html: foo/bar/baz/qux.html}

The server response will be:

Include Markdown


Include LESS

Note: Any LESS files that you include will be transformed to CSS.


@link-color: green;
a {color: @link-color}

And Markserv renders the following content:

The server response will be:

:crossed_flags: Flags

To list the options/flags for the markserv CLI tool:

$ markserv --help

Changing the HTTP Port

You can change the HTTP Port like this:

markserv -p 80

Making Markserv available to external networks

In some cases

might be the address on which the server is listening, in which case it is hard to make the site available to external networks even with the right IP. Use the following as an example to make sure the server is accessible from external networks:
markserv -p 8642 -a

Above example runs the server on port

and it can be accessed from external networks using public IP of the machine on which the server is running. If you want the server to keep running in a seperate thread even when you log out, use this:
nohup markserv -p 8642 -a &

This will make the server instance persistent and will be available to access even when you log out or even when your ssh session closes (in case you are accessing a remote machine through ssh to set up


:cupid: Credits

Thanks goes to these wonderful people (emoji key):

Alistair MacDonald




Kefei Lu


Zhenfei You




Daniel Perez


Sushruth Shastry


Patryk Rzucidło




Matthew Reishus


Daniel Wennberg


Pete Hodgson


Deleted user


Liam Dawson


This project follows the all-contributors specification. Contributions of any kind welcome!

We use cookies. If you continue to browse the site, you agree to the use of cookies. For more information on our use of cookies please see our Privacy Policy.