https://github.com/instant-markdown/instant-markdown-d
Small instant Markdown preview server
https://github.com/instant-markdown/instant-markdown-d
markdown nodejs-server
Last synced: 9 months ago
JSON representation
Small instant Markdown preview server
- Host: GitHub
- URL: https://github.com/instant-markdown/instant-markdown-d
- Owner: instant-markdown
- License: other
- Created: 2012-02-10T16:31:52.000Z (almost 14 years ago)
- Default Branch: main
- Last Pushed: 2024-05-19T19:53:54.000Z (over 1 year ago)
- Last Synced: 2024-10-29T18:39:45.321Z (about 1 year ago)
- Topics: markdown, nodejs-server
- Language: CSS
- Homepage: https://instant-markdown.github.io
- Size: 140 KB
- Stars: 189
- Watchers: 8
- Forks: 103
- Open Issues: 19
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- Contributing: CONTRIBUTING.md
- License: LICENSE
Awesome Lists containing this project
README
!nstant-markdown-d
==================
[](https://www.npmjs.com/package/instant-markdown-d)
[](https://github.com/instant-markdown/instant-markdown-d/actions/workflows/nodejs.yml)
[](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:\ | \ |
| Close Webpage | DELETE | http://localhost:\ | |
By default, `` 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.