aboutsummaryrefslogtreecommitdiff
path: root/dotnet/Mammoth
diff options
context:
space:
mode:
Diffstat (limited to 'dotnet/Mammoth')
-rw-r--r--dotnet/Mammoth/Couscous/mammoth/internal/styles/parsing/StyleMapParser.cs12
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();
}
}
}