\(text.htmlEscape())
27 | """
28 | case let .emphasis(text):
29 | return """
30 | \(text.htmlEscape())
31 | """
32 | case let .strongEmphasis(text):
33 | return """
34 | \(text.htmlEscape())
35 | """
36 | case let .inlineLink(text, url):
37 |
38 | return """
39 | \(text.htmlEscape())
40 | """
41 | }
42 | }
43 | }
44 |
--------------------------------------------------------------------------------
/MarkRight/Info.plist:
--------------------------------------------------------------------------------
1 |
2 |
3 | \(lines.htmlText)
20 | """ 21 | case let .blockQuote(lines): 22 | return """ 23 |24 | """ 25 | case let .bulletList(items): 26 | return """ 27 |\(lines.map { $0.htmlText }.joined(separator: "
"))
\(code)
54 | """
55 | case let .taskListItem(checked, node):
56 |
57 | guard case let .listItemParagraph(main, sons) = node else {
58 | return ""
59 | }
60 | let son = sons.map {
61 | return """
62 | \($0.htmlText)
63 | """
64 | }
65 | return """
66 | \(code)
63 | """
64 | case .thematicBreak:
65 | return """
66 | 74 | \(lines.htmlText) 75 |
76 | """ 77 | case let .indentedChunk(strings): 78 | return """ 79 | \(strings.map { $0.htmlEscape() }.joined()) 80 | """ 81 | case let .indentedCodeBlock(chunks): 82 | return """ 83 | \(chunks.htmlText) 84 | """ 85 | case let .tableHeading(align, inlines): 86 | 87 | return """ 88 |