Categorygithub.com/linkdd/easymd
modulepackage
0.2.1
Repository: https://github.com/linkdd/easymd.git
Documentation: pkg.go.dev

# README

easymd

This program is a very simple HTTP server used to render Markdown documents to HTML, to share easily some informations with others.

Features

  • parse frontmatter
  • render Markdown documents to HTML using Goldmark
  • tables and syntax highlighting support

Frontmatter:

---
title: "Hello world"
lang: en
meta:
 - attribute: keywords
   value: hello,world
css:
 - https://url/to/style.css
js:
 - https://url/to/script.js
---

Build

Simply run:

$ go build

Usage

easymd - a simple server rendering markdown documents to HTML

Usage:
  easymd [flags]

Flags:
  -b, --bind ip       IP address to listen on (default 0.0.0.0)
  -h, --help          help for easymd
  -p, --port int      Port to listen on (default 8000)
  -r, --root string   Root directory to scan for markdown documents (default ".")

If you have the following structure:

|-+ docs/
  |-- _index.md
  |-- hello.md
  |-- image.png
  |-+ foo/
    |-- bar.md

And run the command:

$ easymd -b 127.0.0.1 -p 8000 -r ./docs/

The following URLs will be available:

License

This project is released under the terms of the MIT License.

# Packages

No description provided by the author
No description provided by the author