mirror of
https://github.com/Dimillian/IceCubesApp.git
synced 2024-11-25 09:41:02 +00:00
Add blockquote supports
This commit is contained in:
parent
1dec2ab68a
commit
7719046d10
1 changed files with 7 additions and 0 deletions
|
@ -189,6 +189,13 @@ public struct HTMLString: Codable, Equatable, Hashable, @unchecked Sendable {
|
|||
}
|
||||
// Strip newlines and line separators - they should be being sent as <br>s
|
||||
asMarkdown += txt.replacingOccurrences(of: "\n", with: "").replacingOccurrences(of: "\u{2028}", with: "")
|
||||
} else if node.nodeName() == "blockquote" {
|
||||
asMarkdown += "\n\n`"
|
||||
for nn in node.getChildNodes() {
|
||||
handleNode(node: nn, indent: indent)
|
||||
}
|
||||
asMarkdown += "`"
|
||||
return
|
||||
} else if node.nodeName() == "strong" || node.nodeName() == "b" {
|
||||
asMarkdown += "**"
|
||||
for nn in node.getChildNodes() {
|
||||
|
|
Loading…
Reference in a new issue