//
//  EvidationStyling.swift
//  EvidationMarkdown
//
//  Created by Helena McGahagan on 4/11/19.
//  Copyright © 2019 Evidation Health, Inc. All rights reserved.
//

import Markdown

public class EvidationStyling: DefaultStyling {
    
    public var evidationImageStyling = EvidationImageStyling()
    public var evidationListStyling = EvidationListStyling()
    public var verticalStyling = VerticalStyling()
    public var horizontalStyling = HorizontalStyling()
    public var horizontalColumnStyling = HorizontalColumnStyling()
    public var leftImageStyling = LeftImageStyling()
    public var centerImageStyling = CenterImageStyling()
    public var heartlineIconStyling = HeartlineIconStyling()
    public var underlineStyling = UnderlineStyling()
    public var colorStyling = ColorStyling()
    
    public var knownColors: [String: UIColor] = [:]
    
    public override init() {
        super.init()
        self.headingStyling = EvidationHeadingStyling()
    }

    override public var itemStylingRules: [ItemStyling] {
        let rules = super.itemStylingRules
        return rules + [evidationImageStyling, evidationListStyling, verticalStyling,
                        horizontalStyling, horizontalColumnStyling, leftImageStyling,
                        centerImageStyling, heartlineIconStyling, underlineStyling, colorStyling]
    }
}
