mirror of
https://github.com/Novaloop-AG/element-x-ios.git
synced 2026-11-03 06:31:27 +00:00
Initial timeline HTML support.
This commit is contained in:
@@ -0,0 +1,20 @@
|
||||
//
|
||||
// AttributedStringBuilderProtocol.swift
|
||||
// ElementX
|
||||
//
|
||||
// Created by Stefan Ceriu on 24/03/2022.
|
||||
// Copyright © 2022 Element. All rights reserved.
|
||||
//
|
||||
|
||||
import Foundation
|
||||
|
||||
struct AttributedStringBuilderComponent: Hashable {
|
||||
let attributedString: AttributedString
|
||||
let isBlockquote: Bool
|
||||
}
|
||||
|
||||
protocol AttributedStringBuilderProtocol {
|
||||
func fromHTML(_ htmlString: String?) -> AttributedString?
|
||||
|
||||
func blockquoteCoalescedComponentsFrom(_ attributedString: AttributedString?) -> [AttributedStringBuilderComponent]?
|
||||
}
|
||||
Reference in New Issue
Block a user