# instant-markdown-d

> Instantly-updating Markdown Server

Latest version **0.3.0** (published 2023-09-30) · Apache-2.0 license · 0 weekly downloads

## Install

```sh
npm install instant-markdown-d
pnpm add instant-markdown-d
yarn add instant-markdown-d
bun add instant-markdown-d
```

Provides the command `instant-markdown-d`.

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.3.0 |
| Published | 2023-09-30 |
| First published | 2012-02-10 |
| Weekly downloads | 0 |
| License | Apache-2.0 |
| TypeScript types | none |
| Module format | CommonJS |
| Node | >=12.0.0 |
| Dependencies | 12 |
| Unpacked size | 94.1 KB |
| Known vulnerabilities | 0 (+14 in 4 direct dependencies) |
| Install scripts | no |
| GitHub stars | 198 |
| Author | Suan-Aik Yeo |
| Maintainers | suan, ashwinvis |

## Links

- npm: https://www.npmjs.com/package/instant-markdown-d
- Repository: https://github.com/instant-markdown/instant-markdown-d
- Issues: https://github.com/instant-markdown/instant-markdown-d/issues
- npm.io page: https://npm.io/package/instant-markdown-d

## Dependencies (12)

- [send](https://npm.io/package/send.md) ~0.17.2
- [mathjax](https://npm.io/package/mathjax.md) ^2.7.9
- [mermaid](https://npm.io/package/mermaid.md) ~10.4.0
- [minimist](https://npm.io/package/minimist.md) ^1.2.8
- [socket.io](https://npm.io/package/socket.io.md) ^4.7.2
- [markdown-it](https://npm.io/package/markdown-it.md) ^13.0.1
- [highlight.js](https://npm.io/package/highlight.js.md) ^11.8.0
- [mathjax-node-page](https://npm.io/package/mathjax-node-page.md) ^1.4.1
- [markdown-it-mathjax](https://npm.io/package/markdown-it-mathjax.md) ^2.0.0
- [markdown-it-task-lists](https://npm.io/package/markdown-it-task-lists.md) ^2.1.1
- [markdown-it-textual-uml](https://npm.io/package/markdown-it-textual-uml.md) ^0.1.3
- [markdown-it-front-matter](https://npm.io/package/markdown-it-front-matter.md) ^0.2.3

## Recent versions

- 0.3.0 (latest) — 2023-09-30
- 0.2.0 — 2021-06-16
- 0.2.0-rc.2 — 2019-10-15
- 0.2.0-rc.1 — 2019-07-19
- 0.1.1 — 2019-07-19
- 0.1.0 — 2015-01-18
- 0.0.8 — 2013-03-02
- 0.0.7 — 2012-09-30
- 0.0.6 — 2012-04-26
- 0.0.5 — 2012-04-26
- 0.0.4 — 2012-04-09
- 0.0.3 — 2012-03-27
- 0.0.2 — 2012-02-11
- 0.0.1 — 2012-02-10

## README

!nstant-markdown-d
==================

[![npm](https://img.shields.io/npm/v/instant-markdown-d)](https://www.npmjs.com/package/instant-markdown-d)
[![Node.js](https://github.com/instant-markdown/instant-markdown-d/workflows/Node.js/badge.svg)](https://github.com/instant-markdown/instant-markdown-d/actions/workflows/nodejs.yml)
[![open collective badge](https://opencollective.com/instant-markdown/tiers/backer/badge.svg?label=backer&color=brightgreen)](https://opencollective.com/instant-markdown/)

instant-markdown-d is a small Node.js server that enables instant compilation
and previewing of Markup files. A plugin can easily be written for any text
editor to interface with it. One currently exists for Vim:
https://github.com/instant-markdown/vim-instant-markdown

Installation
------------

Install the mini-server by running either:

    [sudo] npm -g install instant-markdown-d

or ~~using yarn~~ (not recommended. See issue #86):

    [sudo] yarn global add instant-markdown-d

To install from the bleeding edge development version, read the [contributing
guide](CONTRIBUTING.md). See
[vim-instant-markdown](https://github.com/instant-markdown/vim-instant-markdown)
for Vim / Neovim integration.

REST API
--------

| Action                   | HTTP Method | Request URL               | Request Body                   |
|--------------------------|-------------|---------------------------|--------------------------------|
| Refresh Markdown on page | PUT         | http://localhost:\<port\> | \<New Markdown file contents\> |
| Close Webpage            | DELETE      | http://localhost:\<port\> |                                |

By default, `<port>` is 8090

Environment variables
---------------------

* `INSTANT_MARKDOWN_OPEN_TO_THE_WORLD=1` - by default, the server only listens
  on localhost. To make the server available to others in your network, set this
  environment variable to a non-empty value. Only use this setting on trusted
  networks!

* `INSTANT_MARKDOWN_ALLOW_UNSAFE_CONTENT=1` - by default, scripts are blocked.
  Use this preference to allow scripts.

* `INSTANT_MARKDOWN_BLOCK_EXTERNAL=1` - by default, external resources such as
  images, stylesheets, frames and plugins are *allowed*. Use this setting to
  *block* such external content.

* `INSTANT_MARKDOWN_MATHJAX_FONTS="/usr/share/mathjax/fonts/HTML-CSS/"` - to
  serve fonts for Mathjax from a local directory.

---
_Source: https://npm.io/package/instant-markdown-d · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
