All Projects → aerth → Markdownd

aerth / Markdownd

Licence: mit
simple markdown server (optional indexing, no symlinks) report bugs: https://github.com/aerth/markdownd/issues (Heroku takes a couple seconds to load. Patience...)

Programming Languages

go
31211 projects - #10 most used programming language

Projects that are alternatives of or similar to Markdownd

Markserv
🏁 serve markdown as html (GitHub style), index directories, live-reload as you edit
Stars: ✭ 304 (+114.08%)
Mutual labels:  markdown, server
Pervane
Plain text file based note taking and knowledge base building tool, markdown editor, simple browser IDE.
Stars: ✭ 159 (+11.97%)
Mutual labels:  markdown, server
Hads
📚 Markdown superpowered documentation for Node.js
Stars: ✭ 147 (+3.52%)
Mutual labels:  markdown, server
Backslide
💦 CLI tool for making HTML presentations with Remark.js using Markdown
Stars: ✭ 679 (+378.17%)
Mutual labels:  markdown, server
Markwon
Android markdown library (no WebView)
Stars: ✭ 1,949 (+1272.54%)
Mutual labels:  markdown
Graphqlws
Implementation of the GraphQL over WebSocket protocol in Go.
Stars: ✭ 139 (-2.11%)
Mutual labels:  server
Texy
Texy is a lightweight markup language with plain text formatting syntax engine.
Stars: ✭ 138 (-2.82%)
Mutual labels:  markdown
Desktoplivestreaming
DesktopLiveStreaming
Stars: ✭ 138 (-2.82%)
Mutual labels:  server
Httptoolkit Server
The backend of HTTP Toolkit
Stars: ✭ 140 (-1.41%)
Mutual labels:  server
Formd
A Markdown formatting tool
Stars: ✭ 141 (-0.7%)
Mutual labels:  markdown
Tsw
Tencent Server Web
Stars: ✭ 1,757 (+1137.32%)
Mutual labels:  server
X0
Document & develop React components without breaking a sweat
Stars: ✭ 1,706 (+1101.41%)
Mutual labels:  markdown
Proton
A stand-alone application to quickly preview and edit Markdown files using Electron.
Stars: ✭ 140 (-1.41%)
Mutual labels:  markdown
Pure Http
✨ The simple web framework for Node.js with zero dependencies.
Stars: ✭ 139 (-2.11%)
Mutual labels:  server
Remarkdown
Styling HTML as if it were raw Markdown text.
Stars: ✭ 141 (-0.7%)
Mutual labels:  markdown
Knot
A mirrored repository
Stars: ✭ 138 (-2.82%)
Mutual labels:  server
Mdme
Self-rendering Markdown content
Stars: ✭ 140 (-1.41%)
Mutual labels:  markdown
Ansible Role Nfs
Ansible Role - NFS
Stars: ✭ 141 (-0.7%)
Mutual labels:  server
Chorale
Chorale is a set of tools for interacting with Notion and Notion content.
Stars: ✭ 140 (-1.41%)
Mutual labels:  server
Rosid
Just-in-time development server and static site generator.
Stars: ✭ 139 (-2.11%)
Mutual labels:  server

markdownd

markdownd [flags] <directory>

markdownd -toc -header theme/header.html -footer theme/footer.html .

markdownd -index=gen .

Go Report Card Build Status

Markdown Server

  • tries markdown file (.md) in .html request (/index.html tries /index.md first)
  • will serve .html if exists
  • serves static files and downloads if not .html or .md
  • optional indexing (default: off, use -index=gen or -index=README.md)
  • no symlinks
  • no ../ paths
  • raw markdown source requests ( example: GET /index.md?raw )
  • custom index page (use flag: -index README.md)
  • generates table of contents with -toc flag
  • themed html with -header and -footer flag
  • now with syntax highlighting (use flag: -syntax)

Usage

  • GET / will show a 404 unless -index flag is used (-index=gen to generate)
  • GET /README.md or GET /README.html will process the markdown file and serve HTML.
  • GET /README.md?raw will serve raw markdown source
  • To generate index page (with links to files), use -index=gen
  • To serve custom index.md, use -index=index.md

Example use case: live preview your git repository's README.md

From your project repository that contains a README.md file, run markdownd like so:

markdownd -index=README.md .

And visit http://localhost:8080/ in your browser

Installation

Compile using Go (from any directory)

git clone https://github.com/aerth/markdownd
cd markdownd
make && sudo make install

If you don't want to install the server system-wide, or you don't have root privileges, replace last line with:

make && make install INSTALLDIR=$HOME/bin

Or using legacy go get

GOFLAGS=-tags=netgo,osusergo GOBIN=$HOME/bin go get -v github.com/aerth/markdownd

Download binary for your OS (old versions)

Latest Release

Consider installing go and building from source, Its fast and easy.

Docker

When using the docker image, markdownd servest the /opt directory, and exposes port 8080.

You will want to share a directory into /opt and forward the port (using docker's -v and -p flags).

For example (modify $PWD/docs and 8888 to suit your needs):

docker run -it -v $PWD/docs:/opt -p 8888:8080 aerth/markdownd

Free and Open Source

The MIT License (MIT)

Copyright (c) 2017-2020  aerth <[email protected]>

Permission is hereby granted, free of charge, to any person obtaining a 
copy of this software and associated documentation files (the 
"Software"), to deal in the Software without restriction, including 
without limitation the rights to use, copy, modify, merge, publish, 
distribute, sublicense, and/or sell copies of the Software, and to 
permit persons to whom the Software is furnished to do so, subject to 
the following conditions:

The above copyright notice and this permission notice shall be included 
in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS 
OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF 
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. 
IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY 
CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, 
TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE 
SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

Contributing:

  • pull requests welcome
  • bugs/issues/features very welcome
  • please 'gofmt -w -l -s' before commits
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].