diff --git a/test/books/highlight/README.md b/test/books/highlight/README.md index 417fabc91..f47ac835c 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: `` \ No newline at end of file diff --git a/test/codehighlighting.js b/test/codehighlighting.js index d79fc852d..5b3902b9f 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__code" + } + }); + }); });