-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
tunnckoCore
committed
Aug 6, 2015
1 parent
112c255
commit 2f36c69
Showing
13 changed files
with
147 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
root = true | ||
|
||
[*] | ||
indent_style = space | ||
charset = utf-8 | ||
end_of_line = lf | ||
indent_size = 2 | ||
insert_final_newline = true | ||
trim_trailing_whitespace = true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
# Logs | ||
logs | ||
*.log | ||
|
||
# Runtime data | ||
pids | ||
*.pid | ||
*.seed | ||
|
||
# Coverage directory used by tools like istanbul | ||
coverage | ||
|
||
# Grunt intermediate storage (http://gruntjs.com/creating-plugins#storing-task-files) | ||
.grunt | ||
|
||
# Compiled binary addons (http://nodejs.org/api/addons.html) | ||
build/Release | ||
|
||
# Dependency directory | ||
# Commenting this out is preferred by some people, see | ||
# https://www.npmjs.org/doc/misc/npm-faq.html#should-i-check-my-node_modules-folder-into-git- | ||
node_modules | ||
|
||
# Users Environment Variables | ||
.lock-wscript |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
language: node_js | ||
sudo: false | ||
|
||
node_js: | ||
- "0.10" | ||
- "0.12" | ||
- "iojs" | ||
|
||
after_success: | ||
- npm run coverage | ||
- npm i coveralls | ||
- cat ./coverage/lcov.info | coveralls | ||
|
||
notifications: | ||
email: | ||
on_success: never |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
# Change Log | ||
All notable changes to this project will be documented in this file. | ||
This project adheres to [Semantic Versioning](http://semver.org/). | ||
|
||
## 0.0.0 - 2015-xx-xx | ||
- Initial commits |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,51 @@ | ||
# jstransformer-megamark | ||
megamark support for JSTransformers. | ||
# jstransformer-megamark [![The MIT License][license-img]][license-url] | ||
|
||
<a href="http://github.com/jstransformers/jstransformer"><img src="https://cdn.rawgit.com/jstransformers/jstransformer/master/logo.svg" align="right" width="100px" height="100px" /></a> | ||
|
||
[megamark](https://github.com/bevacqua/megamark) support for [JSTransformers][jstransformers-url]. | ||
|
||
[![travis build status][travis-img]][travis-url] [![coverage status][coveralls-img]][coveralls-url] [![dependency status][david-img]][david-url] [![npmjs.com][npmjs-img]][npmjs-url] | ||
|
||
|
||
## Install | ||
``` | ||
npm install jstransformer-megamark --save | ||
npm test | ||
``` | ||
|
||
|
||
## Usage | ||
> For more use-cases see the **tests** in [test folder](./test) or see the [JSTransformer API](http://github.com/jstransformers/jstransformer#api) for more details. | ||
```js | ||
var megamark = require('jstransformer')(require('jstransformer-megamark')); | ||
|
||
console.log(megamark.render('_Hello_, **world**!').body); | ||
//=> '<p><em>Hello</em>, <strong>world</strong>!</p>' | ||
``` | ||
|
||
|
||
## Contributing | ||
Pull requests and stars are always welcome. For bugs and feature requests, [please create an issue](https://github.com/jstransformers/jstransformer-megamark/issues/new). | ||
|
||
|
||
## License | ||
[The MIT License][license-url] | ||
|
||
|
||
[npmjs-url]: https://www.npmjs.com/package/jstransformer-megamark | ||
[npmjs-img]: https://img.shields.io/npm/v/jstransformer-megamark.svg | ||
|
||
[license-url]: ./LICENSE | ||
[license-img]: https://img.shields.io/badge/license-MIT-blue.svg | ||
|
||
[travis-url]: https://travis-ci.org/jstransformers/jstransformer-megamark | ||
[travis-img]: https://img.shields.io/travis/jstransformers/jstransformer-megamark.svg | ||
|
||
[coveralls-url]: https://coveralls.io/r/jstransformers/jstransformer-megamark | ||
[coveralls-img]: https://img.shields.io/coveralls/jstransformers/jstransformer-megamark.svg | ||
|
||
[david-url]: https://david-dm.org/jstransformers/jstransformer-megamark | ||
[david-img]: https://img.shields.io/david/jstransformers/jstransformer-megamark.svg | ||
|
||
[jstransformers-url]: http://github.com/jstransformers |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
'use strict'; | ||
|
||
var megamark = require('megamark'); | ||
|
||
exports.name = 'megamark'; | ||
exports.inputFormats = ['md', 'markdown', 'megamark']; | ||
exports.outputFormat = 'html'; | ||
|
||
exports.render = function (str, options) { | ||
return megamark(str, options); | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
{ | ||
"name": "jstransformer-megamark", | ||
"version": "0.0.0", | ||
"description": "megamark support for JSTransformers.", | ||
"keywords": [ | ||
"jstransformer" | ||
], | ||
"files": [ | ||
"index.js" | ||
], | ||
"devDependencies": { | ||
"test-jstransformer": "^1.0.0" | ||
}, | ||
"scripts": { | ||
"coverage": "test-jstransformer coverage", | ||
"test": "test-jstransformer" | ||
}, | ||
"repository": "jstransformers/jstransformer-megamark", | ||
"author": "JSTransformers Team (https://github.com/orgs/jstransformers/people)", | ||
"license": "MIT", | ||
"dependencies": { | ||
"megamark": "^3.1.0" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
[] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
<p><em>Hello</em>, <strong>world</strong>!</p> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
_Hello_, **world**! |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
{} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
{} |