aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
Diffstat (limited to 'test')
-rw-r--r--test/document-to-html.tests.js15
1 files changed, 15 insertions, 0 deletions
diff --git a/test/document-to-html.tests.js b/test/document-to-html.tests.js
index d21badb..8124ad1 100644
--- a/test/document-to-html.tests.js
+++ b/test/document-to-html.tests.js
@@ -450,6 +450,21 @@ test('breaks that are not line breaks are ignored', function() {
});
});
+test('breaks can be mapped using style mappings', function() {
+ var converter = new DocumentConverter({
+ styleMap: [
+ {
+ from: documentMatchers.pageBreak,
+ to: htmlPaths.topLevelElement("hr")
+ }
+ ]
+ });
+
+ return converter.convertToHtml(documents.pageBreak).then(function(result) {
+ assert.equal(result.value, "<hr />");
+ });
+});
+
test('footnote reference is converted to superscript intra-page link', function() {
var footnoteReference = new documents.NoteReference({
noteType: "footnote",