diff options
| -rw-r--r-- | dotnet/Mammoth.Tests/DocumentConverterTests.cs | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/dotnet/Mammoth.Tests/DocumentConverterTests.cs b/dotnet/Mammoth.Tests/DocumentConverterTests.cs index 8d72d40..6ae0fe7 100644 --- a/dotnet/Mammoth.Tests/DocumentConverterTests.cs +++ b/dotnet/Mammoth.Tests/DocumentConverterTests.cs @@ -99,6 +99,15 @@ namespace Mammoth.Tests { "<li id=\"doc-42-endnote-3\"><p> Fin. <a href=\"#doc-42-endnote-ref-3\">↑</a></p></li></ol>"); } + [Fact] + public void RelationshipsAreReadForEachFileContainingBodyXml() { + AssertSuccessfulConversion( + ConvertToHtml("footnote-hyperlink.docx", mammoth => mammoth.IdPrefix("doc-42-")), + + "<p><sup><a href=\"#doc-42-footnote-1\" id=\"doc-42-footnote-ref-1\">[1]</a></sup></p>" + + "<ol><li id=\"doc-42-footnote-1\"><p> <a href=\"http://www.example.com\">Example</a> <a href=\"#doc-42-footnote-ref-1\">↑</a></p></li></ol>"); + } + [Fact] public void CanExtractRawTextFromFile() { AssertSuccessfulConversion( |
