Giter Site home page Giter Site logo

rverst / mdsync Goto Github PK

View Code? Open in Web Editor NEW
4.0 1.0 0.0 18.56 MB

Simple markdown renderer with live reloading

License: MIT License

CSS 56.06% JavaScript 4.52% HTML 9.43% Go 29.98%
markdown-previewer markdown markdown-viewer browser-sync live-reload development

mdsync's Introduction

mdsync

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

image alt <>

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).

mdsync's People

Contributors

rverst avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar

mdsync's Issues

Embed Iosevka web font

The fonts do not work correctly on Safari. Embedding the web font should help and additionally achieve the same result for users who do not have Iosevka installed.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.