Skip to content

Commit 85bb30c

Browse files
simovwooorm
authored andcommitted
Add support for ignoring toml nodes
Closes GH-16. Closes remarkjs/remark-frontmatter#1.
1 parent 90030ec commit 85bb30c

File tree

3 files changed

+17
-0
lines changed

3 files changed

+17
-0
lines changed

lib/handlers/index.js

+1
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ module.exports = {
2323
table: require('./table'),
2424
text: require('./text'),
2525
thematicBreak: require('./thematic-break'),
26+
toml: ignore,
2627
yaml: ignore,
2728
definition: ignore,
2829
footnoteDefinition: ignore

test/index.js

+1
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ require('./strong.js');
2727
require('./table.js');
2828
require('./text.js');
2929
require('./thematic-break.js');
30+
require('./toml.js');
3031
require('./yaml.js');
3132

3233
require('./handlers-option.js');

test/toml.js

+15
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
'use strict';
2+
3+
var test = require('tape');
4+
var u = require('unist-builder');
5+
var to = require('..');
6+
7+
test('TOML', function (t) {
8+
t.equal(
9+
to(u('toml', 'kilo: "lima"')),
10+
null,
11+
'should ignore `toml`'
12+
);
13+
14+
t.end();
15+
});

0 commit comments

Comments
 (0)