mirror of
https://github.com/Dimillian/IceCubesApp.git
synced 2025-02-16 17:55:13 +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
|
// Strip newlines and line separators - they should be being sent as <br>s
|
||||||
asMarkdown += txt.replacingOccurrences(of: "\n", with: "").replacingOccurrences(of: "\u{2028}", with: "")
|
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" {
|
} else if node.nodeName() == "strong" || node.nodeName() == "b" {
|
||||||
asMarkdown += "**"
|
asMarkdown += "**"
|
||||||
for nn in node.getChildNodes() {
|
for nn in node.getChildNodes() {
|
||||||
|
|
Loading…
Reference in a new issue