Code Monkey home page Code Monkey logo

md2mbed's Introduction

Markdown to mbed

The formatting system on os.mbed.com uses a custom formatting system based on Creole, while the rest of the world uses Markdown. This tool takes in Markdown and spits out Mbed-formatted text.

Usage

  1. Install via npm -g install md2mbed.
  2. md2mbed takes in data via stdin and spits it out via stdout:
    • To convert a file: cat test.md | md2mbed > output.txt.
    • To convert text on the clipboard: pbpaste | md2mbed | pbcopy.

Example

In:

# Hello

This is a [test](http://google.com). This is *also* a test. This has to be **bold**.

![Image](heres-an-image.png)

## Sub-header

Joyful times ahead! No more manual conversion.

* Here's a list
* Also here
    * Nested list
    * Moar nesting
* Whut

Some random text...

    var a = 7;
    var b = 42;
    console.log(a*b);

Out:

= Hello =

This is a [[http://google.com | test]]. This is //also// a test. This has to be **bold**.

{{heres-an-image.png}}

== Sub-header ==

Joyful times ahead! No more manual conversion.

* Here's a list
* Also here
    * Nested list
    * Moar nesting
* Whut

Some random text...

<<code>>
var a = 7;
var b = 42;
console.log(a*b);
<</code>>

md2mbed's People

Contributors

janjongboom avatar

Stargazers

Ned Konz avatar

Watchers

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.