easymd

command module
v0.2.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 3, 2022 License: MIT Imports: 1 Imported by: 0

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.

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
cmd
pkg

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL