From bba2f4d95240ea3569e253609e95cc94c5c8ef13 Mon Sep 17 00:00:00 2001 From: Michael Williamson Date: Sat, 20 Feb 2016 14:20:40 +0000 Subject: Add strikethrough to style map --- src/main/java/org/zwobble/mammoth/styles/StyleMap.java | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) (limited to 'src/main/java/org/zwobble/mammoth/styles/StyleMap.java') diff --git a/src/main/java/org/zwobble/mammoth/styles/StyleMap.java b/src/main/java/org/zwobble/mammoth/styles/StyleMap.java index bdc8483..1db5c65 100644 --- a/src/main/java/org/zwobble/mammoth/styles/StyleMap.java +++ b/src/main/java/org/zwobble/mammoth/styles/StyleMap.java @@ -1,17 +1,25 @@ package org.zwobble.mammoth.styles; -import static org.zwobble.mammoth.util.MammothLists.list; - public class StyleMap { - public static final StyleMap EMPTY = new StyleMap(new HtmlPath(list())); + public static StyleMapBuilder builder() { + return new StyleMapBuilder(); + } + + public static final StyleMap EMPTY = new StyleMapBuilder().build(); private final HtmlPath underline; + private final HtmlPath strikethrough; - public StyleMap(HtmlPath underline) { + public StyleMap(HtmlPath underline, HtmlPath strikethrough) { this.underline = underline; + this.strikethrough = strikethrough; } public HtmlPath getUnderline() { return underline; } + + public HtmlPath getStrikethrough() { + return strikethrough; + } } -- cgit v1.2.3