1
0
Fork 0
This repository has been archived on 2024-02-06. You can view files and clone it, but cannot push or open issues or pull requests.
markdown-it-attr/test/index.js
2021-01-12 20:05:19 +09:00

23 lines
643 B
JavaScript

const mdi = require('markdown-it');
const mrt = require('@sup39/markdown-it-raw-table');
const mia = require('..');
const test = require('./test');
describe('Attributes', () => {
const md = mdi().use(mia);
test(md, 'attrs.txt');
});
describe('Common', () => {
const md = mdi().use(mia);
test(md, 'common.txt');
});
describe('Escape', () => {
const md = mdi().use(mia);
test(md, 'escape.txt');
});
describe('Table (with @sup39/markdown-it-raw-table)', () => {
const md = mdi().use(mrt).use(mia);
// enable raw_table_tr
mia.inlineAttrsApplyRules.find(e=>e.name==='raw_table_tr').disabled = false;
test(md, 'table.txt');
});