|
@ -446,8 +446,8 @@ describe('Token attributes', function () { |
|
|
it('.attrJoin', function () { |
|
|
it('.attrJoin', function () { |
|
|
const md = markdownit() |
|
|
const md = markdownit() |
|
|
|
|
|
|
|
|
const tokens = md.parse('```'), |
|
|
const tokens = md.parse('```') |
|
|
t = tokens[0] |
|
|
const t = tokens[0] |
|
|
|
|
|
|
|
|
t.attrJoin('class', 'foo') |
|
|
t.attrJoin('class', 'foo') |
|
|
t.attrJoin('class', 'bar') |
|
|
t.attrJoin('class', 'bar') |
|
@ -461,8 +461,8 @@ describe('Token attributes', function () { |
|
|
it('.attrSet', function () { |
|
|
it('.attrSet', function () { |
|
|
const md = markdownit() |
|
|
const md = markdownit() |
|
|
|
|
|
|
|
|
const tokens = md.parse('```'), |
|
|
const tokens = md.parse('```') |
|
|
t = tokens[0] |
|
|
const t = tokens[0] |
|
|
|
|
|
|
|
|
t.attrSet('class', 'foo') |
|
|
t.attrSet('class', 'foo') |
|
|
|
|
|
|
|
@ -482,8 +482,8 @@ describe('Token attributes', function () { |
|
|
it('.attrGet', function () { |
|
|
it('.attrGet', function () { |
|
|
const md = markdownit() |
|
|
const md = markdownit() |
|
|
|
|
|
|
|
|
const tokens = md.parse('```'), |
|
|
const tokens = md.parse('```') |
|
|
t = tokens[0] |
|
|
const t = tokens[0] |
|
|
|
|
|
|
|
|
assert.strictEqual(t.attrGet('myattr'), null) |
|
|
assert.strictEqual(t.attrGet('myattr'), null) |
|
|
|
|
|
|
|
|