const assert = require('assert');
const underline = require('./index.js');
const md = require('markdown-it')().use(underline);
const tests = [
{ in: '*emphasis*', exp: 'emphasis' },
{ in: '**strong**', exp: 'strong' },
{ in: '***strong emphasis***',
exp: 'strong emphasis' },
{ in: '_underline_', exp: 'underline' },
{ in: '__strong__', exp: 'strong' },
{ in: '___strong underline___',
exp: 'strong underline' },
];
tests.map(test => assert.equal(md.renderInline(test.in), test.exp))