mirror of
https://github.com/GitbookIO/gitbook.git
synced 2026-09-12 05:48:57 +00:00
12 lines
395 B
JavaScript
12 lines
395 B
JavaScript
describe('Formatting', function () {
|
|
it('should provide formatting with book.formatString', function() {
|
|
return books.parse('basic')
|
|
.then(function(book) {
|
|
return book.formatString('markdown', 'this is a **test**');
|
|
})
|
|
.then(function(content) {
|
|
content.should.equal('<p>this is a <strong>test</strong></p>\n');
|
|
});
|
|
});
|
|
});
|