diff options
| author | Michael Williamson <mike@zwobble.org> | 2016-02-20 14:20:40 +0000 |
|---|---|---|
| committer | Michael Williamson <mike@zwobble.org> | 2016-02-20 14:20:40 +0000 |
| commit | bba2f4d95240ea3569e253609e95cc94c5c8ef13 (patch) | |
| tree | 1a510988da0f17f4a3222a0b2f62de4b2f1cf641 /src/main/java/org/zwobble/mammoth/styles/StyleMap.java | |
| parent | a3eb5f0c3ee50afafc517c4a7e36501539489178 (diff) | |
Add strikethrough to style map
Diffstat (limited to 'src/main/java/org/zwobble/mammoth/styles/StyleMap.java')
| -rw-r--r-- | src/main/java/org/zwobble/mammoth/styles/StyleMap.java | 16 |
1 files changed, 12 insertions, 4 deletions
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; + } } |
