From da15da22840e9e66e7921caa0309b2e8749e3553 Mon Sep 17 00:00:00 2001 From: Ken Mueller Date: Wed, 10 Jul 2019 10:35:54 -0700 Subject: [PATCH] indentation for html --- memorize.ai/Global.swift | 54 ++++++++++++++++++++-------------------- 1 file changed, 27 insertions(+), 27 deletions(-) diff --git a/memorize.ai/Global.swift b/memorize.ai/Global.swift index 1a0a134f8..454780cda 100644 --- a/memorize.ai/Global.swift +++ b/memorize.ai/Global.swift @@ -63,33 +63,33 @@ extension WKWebView { func render(_ text: String, fontSize: Int, textColor: String = "000", backgroundColor: String = "fff") { let escapedText = Card.escape(text) loadHTMLString(""" - - - - - - - - - - -
\((try? Down(markdownString: escapedText).toHTML()) ?? escapedText)
- - - - + + + + + + + + + + +
\((try? Down(markdownString: escapedText).toHTML()) ?? escapedText)
+ + + + """, baseURL: URL(fileURLWithPath: Bundle.main.bundlePath, isDirectory: true)) } }