From 2fc377c7a77649a37e2aff7f43051c6cc290b270 Mon Sep 17 00:00:00 2001 From: Darya Rednikina Date: Fri, 17 May 2019 00:40:09 +0300 Subject: [PATCH] Slight changes in md --- GDproject/Controller/ News and channels/NewsVC.swift | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/GDproject/Controller/ News and channels/NewsVC.swift b/GDproject/Controller/ News and channels/NewsVC.swift index 7442640..71e7c94 100644 --- a/GDproject/Controller/ News and channels/NewsVC.swift +++ b/GDproject/Controller/ News and channels/NewsVC.swift @@ -19,7 +19,9 @@ struct PostCellData{ let markdownParser = MarkdownParser(font: UIFont.systemFont(ofSize: 16)) markdownParser.enabledElements = .disabledAutomaticLink - markdownParser.code.textBackgroundColor = #colorLiteral(red: 0.8039215803, green: 0.8039215803, blue: 0.8039215803, alpha: 1) + markdownParser.code.font = UIFont(name: "Menlo", size: 16) + markdownParser.code.textBackgroundColor = #colorLiteral(red: 1, green: 1, blue: 1, alpha: 1) + markdownParser.code.color = #colorLiteral(red: 0.2549019754, green: 0.2745098174, blue: 0.3019607961, alpha: 1) return markdownParser.parse(markdown) }