diff options
| author | Michael Williamson <mike@zwobble.org> | 2017-04-01 16:25:46 +0100 |
|---|---|---|
| committer | Michael Williamson <mike@zwobble.org> | 2017-04-01 16:26:23 +0100 |
| commit | 0e85566f4b327853bf27d09d311783e0e988e733 (patch) | |
| tree | 3cb8c737ae2f86df52df4180876fb0f6de3a98d4 | |
| parent | 45897f5b0a254b56e0f3edde771cbfe14cc173bb (diff) | |
Add test case for embedded style map precedence
| -rw-r--r-- | Mammoth.Tests/DocumentConverterTests.cs | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/Mammoth.Tests/DocumentConverterTests.cs b/Mammoth.Tests/DocumentConverterTests.cs index 1d4da54..3d1b589 100644 --- a/Mammoth.Tests/DocumentConverterTests.cs +++ b/Mammoth.Tests/DocumentConverterTests.cs @@ -191,6 +191,14 @@ namespace Mammoth.Tests { } [Fact] + public void ExplicitStyleMapTakesPrecedenceOverEmbeddedStyleMap() { + AssertSuccessfulConversion( + ConvertToHtml("embedded-style-map.docx", mammoth => mammoth.AddStyleMap("p => p")), + "<p>Walking on imported air</p>" + ); + } + + [Fact] public void CanExtractRawTextFromFile() { AssertSuccessfulConversion( new DocumentConverter().ExtractRawText(TestFilePath("simple-list.docx")), |
