-
-
Notifications
You must be signed in to change notification settings - Fork 43
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
Showing
64 changed files
with
389 additions
and
550 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 |
---|---|---|
@@ -1,8 +1,5 @@ | ||
.DS_Store | ||
*.log | ||
.nyc_output/ | ||
coverage/ | ||
node_modules/ | ||
mdast-util-to-hast.js | ||
mdast-util-to-hast.min.js | ||
yarn.lock |
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,5 +1,2 @@ | ||
.nyc_output/ | ||
coverage/ | ||
mdast-util-to-hast.js | ||
mdast-util-to-hast.min.js | ||
*.md |
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 @@ | ||
'use strict' | ||
module.exports = require('./lib') | ||
export {toHast} from './lib/index.js' |
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
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,10 +1,6 @@ | ||
'use strict' | ||
import {wrap} from '../wrap.js' | ||
import {all} from '../all.js' | ||
|
||
module.exports = blockquote | ||
|
||
var wrap = require('../wrap') | ||
var all = require('../all') | ||
|
||
function blockquote(h, node) { | ||
export function blockquote(h, node) { | ||
return h(node, 'blockquote', wrap(all(h, node), 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 |
---|---|---|
@@ -1,9 +1,5 @@ | ||
'use strict' | ||
import {u} from 'unist-builder' | ||
|
||
module.exports = hardBreak | ||
|
||
var u = require('unist-builder') | ||
|
||
function hardBreak(h, node) { | ||
export function hardBreak(h, node) { | ||
return [h(node, 'br'), u('text', '\n')] | ||
} |
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,9 +1,5 @@ | ||
'use strict' | ||
import {all} from '../all.js' | ||
|
||
module.exports = strikethrough | ||
|
||
var all = require('../all') | ||
|
||
function strikethrough(h, node) { | ||
export function strikethrough(h, node) { | ||
return h(node, 'del', all(h, node)) | ||
} |
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,9 +1,5 @@ | ||
'use strict' | ||
import {all} from '../all.js' | ||
|
||
module.exports = emphasis | ||
|
||
var all = require('../all') | ||
|
||
function emphasis(h, node) { | ||
export function emphasis(h, node) { | ||
return h(node, 'em', all(h, node)) | ||
} |
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
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,9 +1,5 @@ | ||
'use strict' | ||
import {all} from '../all.js' | ||
|
||
module.exports = heading | ||
|
||
var all = require('../all') | ||
|
||
function heading(h, node) { | ||
export function heading(h, node) { | ||
return h(node, 'h' + node.depth, all(h, node)) | ||
} |
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,10 +1,6 @@ | ||
'use strict' | ||
|
||
module.exports = html | ||
|
||
var u = require('unist-builder') | ||
import {u} from 'unist-builder' | ||
|
||
// Return either a `raw` node in dangerous mode, otherwise nothing. | ||
function html(h, node) { | ||
export function html(h, node) { | ||
return h.dangerous ? h.augment(node, u('raw', node.value)) : null | ||
} |
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
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,10 +1,6 @@ | ||
'use strict' | ||
import {u} from 'unist-builder' | ||
|
||
module.exports = inlineCode | ||
|
||
var u = require('unist-builder') | ||
|
||
function inlineCode(h, node) { | ||
export function inlineCode(h, node) { | ||
var value = node.value.replace(/\r?\n|\r/g, ' ') | ||
return h(node, 'code', [u('text', value)]) | ||
} |
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
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
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,9 +1,5 @@ | ||
'use strict' | ||
import {all} from '../all.js' | ||
|
||
module.exports = paragraph | ||
|
||
var all = require('../all') | ||
|
||
function paragraph(h, node) { | ||
export function paragraph(h, node) { | ||
return h(node, 'p', all(h, node)) | ||
} |
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,11 +1,7 @@ | ||
'use strict' | ||
import {u} from 'unist-builder' | ||
import {all} from '../all.js' | ||
import {wrap} from '../wrap.js' | ||
|
||
module.exports = root | ||
|
||
var u = require('unist-builder') | ||
var wrap = require('../wrap') | ||
var all = require('../all') | ||
|
||
function root(h, node) { | ||
export function root(h, node) { | ||
return h.augment(node, u('root', wrap(all(h, node)))) | ||
} |
Oops, something went wrong.