Code Monkey home page Code Monkey logo

med's Introduction

med

Med is a hackable markdown editor for OSX. You can use any scripts for the markdown parser.

Usage

You can set configurations such as markdown parsers and the appearance of editor at ~/.med.json like following.

{
    "path": "/usr/local/bin:/usr/bin:/usr/local/sbin:/usr/sbin",
    "parsers": [
        "markdown",
        "emoji"
    ],
    "publishers": {
        "markdown": [
            "hatenablog"
        ],
        "html": [
            "tumblr"
        ]
    },
    "editor": {
        "fontName": "Ricty",
        "fontSize": 14,
        "padding": 10,
        "tabWidth": 2
    }
}

Parsers

You can set any scripts as the markdown parsers at parsers. Med processes texts by using these parsers in order. The scripts are required to receive user's input texts as standard input and to return the parsed result as standard output.

Publishers

You can set any scripts to publish texts on somewhere such as your blog at publishers. These can be selected and run from menu. Publishers have two types:

  • markdown: scripts to publish unprocessed markdown texts.
  • html: scripts to publish parsed HTML.

These scripts receive texts as standard input and the the absolute path of an opend file as the first argument.

Preview stylesheets

You can add custom styelsheets for preview. Stylesheets at ~/.med/stylesheets/*.css are loaded and can be selected from menu View > Preview stylesheets.

Quick start

I provide med-scripts for quick start. This repository includes scripts such as markdown parser and emoji parser written by node.js. For setup these scripts, clone this repository and run npm install.

$ git clone https://github.com/naoty/med-scripts.git && cd med-scripts
$ npm install

Then, edit your ~/.med.json like below.

{
    "path": "/path/to/node:/path/to/med-scripts/bin",
    "parsers": [
        "markdown"
    ]
}

med's People

Contributors

naoty avatar

Stargazers

 avatar  avatar chikamim avatar soplana avatar  avatar SHIMIZU Taku avatar Eiji Iwazawa avatar Shinta Koyanagi avatar gong023 avatar Morita Naoki avatar OKAMURA Naoki aka nyarla / kalaclista avatar

Watchers

Morita Naoki avatar James Cloos avatar  avatar

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.