diff options
| author | Michael Williamson <mike@zwobble.org> | 2016-04-26 22:09:16 +0100 |
|---|---|---|
| committer | Michael Williamson <mike@zwobble.org> | 2016-04-26 22:09:16 +0100 |
| commit | a8fe5d665025eaf416922e7fd5478a84b9082599 (patch) | |
| tree | d8d0cc36c09d4a6cf0123ed14ee140bf151703fd /dotnet/Mammoth | |
| parent | 074bf195ebc0c59b1335983904ab0176996ceef5 (diff) | |
Add test for empty paragraph
Diffstat (limited to 'dotnet/Mammoth')
| -rw-r--r-- | dotnet/Mammoth/Couscous/mammoth/internal/styles/parsing/StyleMapParser.cs | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/dotnet/Mammoth/Couscous/mammoth/internal/styles/parsing/StyleMapParser.cs b/dotnet/Mammoth/Couscous/mammoth/internal/styles/parsing/StyleMapParser.cs index 44d1ddd..53315f3 100644 --- a/dotnet/Mammoth/Couscous/mammoth/internal/styles/parsing/StyleMapParser.cs +++ b/dotnet/Mammoth/Couscous/mammoth/internal/styles/parsing/StyleMapParser.cs @@ -4,11 +4,19 @@ using Mammoth.Couscous.org.zwobble.mammoth.@internal.styles; namespace Mammoth.Couscous.org.zwobble.mammoth.@internal.styles.parsing { internal static class StyleMapParser { internal static StyleMap parseStyleMappings(List<string> mappings) { - return StyleMap.builder().build(); + return DefaultStyleMap(); } internal static StyleMap parse(string styleMap) { - return StyleMap.builder().build(); + return DefaultStyleMap(); + } + + private static StyleMap DefaultStyleMap() { + return StyleMap.builder() + + .mapParagraph(ParagraphMatcher.styleName("Normal"), HtmlPath.element("p")) + + .build(); } } } |
