Giter Club home page Giter Club logo

rst2mdown's Introduction

rst2mdown

This is a utility for converting from reStructuredText mark-up to markdown mark-up.

Installation

The tool can be installed via npm:

$ npm install rst2mdown

Or you can download the .zip or .tar.gz, extract and use.

Testing

You can test the installation be using the test script from the root directory:

$ node test

Usage

You will require NodeJS installed. To take in a reStructuredText file and output a markdown one, you would run the following command from the root of the install:

$ bin/rst2mdown -i somefile.rst -o somefile.md

Also, the binary version also support stdin and stdout:

$ bin/rst2mdown < somefile.rst > somefile.md

And module supports both CommonJS and AMD loading. To load as CommonJS module under node:

var rst2mdown = require('rst2mdown');

var mdown = rst2mdown(someReStructuredText);

Or as an AMD module:

require(['rst2mdown'], function (rst2mdown) {
	var mdown = rst2mdown(someReStructuredText);
});

Converting from reStructuredText to markdown is not straight forward. Generally speaking, reStructuredText provides significantly more features than are supportable via markdown. Please refer to the Conversion Notes to understand how particular aspects of the conversion are handled.

License

This code is licensed under the New BSD License and is Copyright (c) 2012 Kitson P. Kelly.

Acknowledgement

This code is possible through documentation and concepts from other projects:

rst2mdown's People

Contributors

kitsonk avatar

Stargazers

Craig Vincent avatar Tenvi avatar Owen avatar Cat  avatar Mayne avatar Alex Ehrnschwender avatar David Barrat avatar Inhere avatar Cologler avatar also avatar Hsin Yuan Yeh avatar theo pak avatar ishida avatar Ryota Yoshikawa avatar Nate Cook avatar Anton Parkhomenko avatar  avatar Ruijun Li avatar Juha Kuitunen avatar

Watchers

James Cloos avatar  avatar  avatar

rst2mdown's Issues

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.