Allow folding of html blocks in markdown files

Fixes #57505
This commit is contained in:
Matt Bierner
2018-09-07 13:35:26 -07:00
parent 321077674d
commit a118676a3b
2 changed files with 24 additions and 2 deletions

View File

@@ -152,6 +152,17 @@ a`);
assert.strictEqual(firstFold.start, 4);
assert.strictEqual(firstFold.end, 6);
});
test('Should fold html blocks', async () => {
const folds = await getFoldsForDocument(`x
<div>
fa
</div>`);
assert.strictEqual(folds.length, 1);
const firstFold = folds[0];
assert.strictEqual(firstFold.start, 1);
assert.strictEqual(firstFold.end, 3);
});
});