diff options
| author | Michael Williamson <mike@zwobble.org> | 2015-01-25 15:37:46 +0000 |
|---|---|---|
| committer | Michael Williamson <mike@zwobble.org> | 2015-01-25 15:37:46 +0000 |
| commit | de40496fbf389418efceacaebb18bc87cd7b53cd (patch) | |
| tree | f26dd0cad8cec224fa0578fa0c22c27e39587982 | |
| parent | 208318fd35c1f3107dc189e0c17330924fd74600 (diff) | |
Don't style footnote reference runs
| -rw-r--r-- | lib/options-reader.js | 1 | ||||
| -rw-r--r-- | tests/mammoth.tests.js | 3 |
2 files changed, 2 insertions, 2 deletions
diff --git a/lib/options-reader.js b/lib/options-reader.js index b32d6f6..8b099d4 100644 --- a/lib/options-reader.js +++ b/lib/options-reader.js @@ -23,6 +23,7 @@ var standardOptions = exports._standardOptions = { "p[style-name='heading 4'] => h4:fresh", "p[style-name='footnote text'] => p", + "r[style-name='footnote reference'] =>", "p:unordered-list(1) => ul > li:fresh", "p:unordered-list(2) => ul|ol > li > ul > li:fresh", diff --git a/tests/mammoth.tests.js b/tests/mammoth.tests.js index 08eafa4..fef47f7 100644 --- a/tests/mammoth.tests.js +++ b/tests/mammoth.tests.js @@ -159,8 +159,7 @@ describe('mammoth', function() { '<ol><li id="footnote-42-1"><p> A tachyon walks into a bar. <a href="#footnote-ref-42-1">↑</a></p></li>' + '<li id="footnote-42-2"><p> Fin. <a href="#footnote-ref-42-2">↑</a></p></li></ol>'; assert.equal(result.value, expectedOutput); - // TODO: get rid of warnings - //~ assert.deepEqual(result.messages, []); + assert.deepEqual(result.messages, []); }); }); |
