Skip to content

Commit 357716e

Browse files
committed
Initial commit
0 parents  commit 357716e

File tree

14 files changed

+997
-0
lines changed

14 files changed

+997
-0
lines changed

.editorconfig

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
root = true
2+
3+
[*]
4+
indent_style = space
5+
indent_size = 4
6+
end_of_line = lf
7+
charset = utf-8
8+
trim_trailing_whitespace = true
9+
insert_final_newline = true
10+
11+
[*.{json,remarkrc,eslintrc,sh}]
12+
indent_size = 2
13+
14+
[*.md]
15+
trim_trailing_whitespace = false

.eslintignore

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
coverage/
2+
example.js
3+
hast-util-to-html.js
4+
hast-util-to-html.min.js

.eslintrc

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{
2+
"extends": "eslint:recommended",
3+
"rules": {
4+
"quotes": [2, "single"]
5+
}
6+
}

.gitignore

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
.DS_Store
2+
*.log
3+
coverage/
4+
node_modules/
5+
hast-util-to-html.js
6+
hast-util-to-html.min.js

.jscs.json

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
{
2+
"excludeFiles": [
3+
"coverage/",
4+
"node_modules/",
5+
"hast-util-to-html.js",
6+
"hast-util-to-html.min.js"
7+
],
8+
"preset": "crockford",
9+
"requireMultipleVarDecl": false,
10+
"disallowDanglingUnderscores": false,
11+
"disallowQuotedKeysInObjects": {"allExcept": ["reserved"]},
12+
"disallowKeywords": [
13+
"with"
14+
],
15+
"maximumLineLength": {
16+
"value": 79,
17+
"allExcept": [
18+
"regex",
19+
"urlComments"
20+
]
21+
},
22+
"jsDoc": {
23+
"checkAnnotations": "jsdoc3",
24+
"checkParamExistence": true,
25+
"checkParamNames": true,
26+
"checkRedundantAccess": true,
27+
"checkRedundantParams": true,
28+
"checkRedundantReturns": true,
29+
"checkReturnTypes": true,
30+
"checkTypes": "strictNativeCase",
31+
"enforceExistence": true,
32+
"requireHyphenBeforeDescription": true,
33+
"requireNewlineAfterDescription": true,
34+
"requireParamDescription": true,
35+
"requireParamTypes": true,
36+
"requireReturnDescription": true,
37+
"requireReturnTypes": true
38+
}
39+
}

.remarkrc

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
{
2+
"output": true,
3+
"plugins": [
4+
"comment-config",
5+
"lint",
6+
"github",
7+
"validate-links",
8+
"usage"
9+
],
10+
"settings": {
11+
"bullet": "*"
12+
}
13+
}

.travis.yml

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
language: node_js
2+
node_js:
3+
- '0.11'
4+
- '0.12'
5+
- '4.0'
6+
- '5.0'
7+
- '6.0'
8+
after_success: bash <(curl -s https://codecov.io/bash)
9+
deploy:
10+
- provider: npm
11+
12+
api_key:
13+
secure: duSQMHdx8o2ZhLIKsfIipd0q69+p0r1/Y2EwoQAvQwZYMsXV8LUY4kWlgbau2dafp9SOdAPjCKR6LK7HLHdbzBCFdVsVd9IPQL78z8ZD3PzhplJs26fWPAmMVddruDGSa1H7FnTpi57XvxlxV1homEAYlbbdLoYTwDmlfMkZIL6HIhNuboNJfgieSPGC5Km549Qfqx6BuBe5pZcCG93kcvT+DRbyxFYi96OHjk++r9Ptwd+07G0MVzmCq91fSLonE3itDArDaMjNcHMeole5G+bTONSbklc5ESQspcbyWZPmdyPQbDXObOnrB2y5tkg6lRrpjyQTE7ZgQCcxNpKq5Op+VbEfGT/1mz85pZTDdXhwHa55hIMeJUDhTHfnRV2kakQd/spy+P0UMWLtvRff8evyIomY3H76t/PmFZyJsJoYnC9mjrg2iZ6Ee/DUXYlqWKUGejcxJadcMuD2yn/6Cv/R+P5/FBgTmnu1PWegsi/IiIQa2/3A0m33qOLOW0RWIhAFWHnKPlip5rIKj0t9c+krd/dK8v80R12JSZtlzZzPMEAdHeEWnJRQW92Nz/oaD6SIfs5JnrZFAgSgdUGyJ9WwO0QUBPfc/BVFEto38vMlrP8BiRiVKcAs3F8Qq9mJvTXPvD6WoqE/NbxGUy1ODuzU4e48jvive5SK4AFkpmg=
14+
on:
15+
tags: true
16+
node: '5.0'
17+
- provider: releases
18+
api_key:
19+
secure: EgQ97gmMgZgSIx+EsTPTLTiEg95Sl3pTfHcRq30u2Vu9n24i1JfuhA0/U1GkMcq8UXetp9+shxgVDU+XQ34nYLaTfiQKMHNgSExq9Llkr1QMAR2tzVVD46wYTsAAih+4zm6P3KN787pu/uZYl1gnYMdYkKPRAz7nVO50FoSCUJfGONj4PsaowlVB2hDYzpbNeKiUBnbUD+Nn/pzN/NnFLpGIH2r42mW1vqPEVGMG0xUf4CmC8ED0ISj/8L7vzdEvzztdQv0i6wQzLSPPqoqq8Wt8HAwqaW72cwybwvk6caUT7axV9VIsSH94hKib0SaDeZUtxvvEmo9CYYhYU4uhsdbCJQhBsJRbm6OEwI1UpxerSV3E5uBEf0bnXqyaPac7PWjA5IOm6cxc9CuJ+LGoUqsiIUNlNLEyQhkTjBEbDlG44U2nMEmpGDw5axsbsgAcL8o8tI4FlZrDxGtDiHJ+vrnTILUNjrQlRsvGEWGif1YbKwbWEE75tG35IuCs0DbPPGVVSoSGC09sGywE1022vY5r/BdN2RYX8YyJ/+a0NTAXv7aIveIAKf7QqUuOeYgo0cUZfhI1zvYtKr9YNsw2OLnYosfsBhIpHb+YLJDa9P9nq/GKw+86BO8BqMrvGmh4Vyo8ZKvySU/ffUKD6tFaxfbM65ZSF3fTEboAPy6v8kg=
20+
file:
21+
- "hast-util-to-html.js"
22+
- "hast-util-to-html.min.js"
23+
on:
24+
tags: true
25+
node: '6.0'

LICENSE

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
(The MIT License)
2+
3+
Copyright (c) 2016 Titus Wormer <[email protected]>
4+
5+
Permission is hereby granted, free of charge, to any person obtaining
6+
a copy of this software and associated documentation files (the
7+
'Software'), to deal in the Software without restriction, including
8+
without limitation the rights to use, copy, modify, merge, publish,
9+
distribute, sublicense, and/or sell copies of the Software, and to
10+
permit persons to whom the Software is furnished to do so, subject to
11+
the following conditions:
12+
13+
The above copyright notice and this permission notice shall be
14+
included in all copies or substantial portions of the Software.
15+
16+
THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND,
17+
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
18+
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
19+
IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
20+
CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
21+
TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
22+
SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

example.js

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
// Dependencies:
2+
var h = require('hastscript');
3+
var toHTML = require('./index.js');
4+
5+
// Transform:
6+
var tree = h('.alpha', [
7+
'bravo ',
8+
h('b', 'charlie'),
9+
' delta ',
10+
h('a.echo', {
11+
download: true
12+
}, 'foxtrot')
13+
]);
14+
15+
// Yields:
16+
console.log('html', toHTML(tree));

history.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
<!--remark setext-->
2+
3+
<!--lint disable no-multiple-toplevel-headings -->
4+
5+
0.0.0 / 2016-06-14
6+
==================

0 commit comments

Comments
 (0)