summaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
Diffstat (limited to 'test')
-rw-r--r--test/books/highlight/README.md3
-rw-r--r--test/codehighlighting.js9
2 files changed, 11 insertions, 1 deletions
diff --git a/test/books/highlight/README.md b/test/books/highlight/README.md
index 417fabc..f47ac83 100644
--- a/test/books/highlight/README.md
+++ b/test/books/highlight/README.md
@@ -12,4 +12,5 @@ Block with a language
test 2
```
-Inline code: `test 3` \ No newline at end of file
+Inline code: `test 3`
+Inline code with html: `<test>` \ No newline at end of file
diff --git a/test/codehighlighting.js b/test/codehighlighting.js
index d79fc85..5b3902b 100644
--- a/test/codehighlighting.js
+++ b/test/codehighlighting.js
@@ -52,5 +52,14 @@ describe("Code Highlighting", function () {
}
});
});
+
+ it("should correctly replace highlighting for inline code with html tags", function() {
+ PAGE.should.be.html({
+ "code": {
+ index: 2,
+ text: "code_<test>_code"
+ }
+ });
+ });
});