mdsync

command module
v1.1.2 Latest Latest
Warning

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

Go to latest
Published: Apr 9, 2022 License: MIT Imports: 17 Imported by: 0

README

mdsync

mdsync is like browsersync, but for markdown. It renders Markdown to HTML and reloads the browser when changes are made. Batteries included:

CSS and scripts for styling and code-highlighting can be extended or replaced.

Installation

> go get -u github.com/rverst/mdsync

Usage

> mdsync example.md

This opens the default browser on http://localhost:5000 to display the rendered output.

  Usage:
    markdown sync [path]

  Positional Variables:
    path   The markdown file to render

  Flags:
       --version      Displays the program version string.
    -h --help         Displays this help.
    -c --css          A custom css path to style the output.
    -s --script       A custom script path to manipulate the output.
    -p --port         The port the server will listen on (default: 5000).
       --no-browser   Prevents the browser from being opened.
       --raw          No embedded scripts and styles, custom files will
                      work though.

With no arguments provided, the first markdown file in the current directory will be loaded.

With --css and --script custom styles or scripts can be loaded. These will be loaded after the embedded style.css or highlight.js. With the switch -raw the embedded styles and scripts can be switched off (except for the reload-script).

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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