Skip to content

Commit 9bd850e

Browse files
committed
Fixed bug in AttributedStringGenerator.
1 parent 640e536 commit 9bd850e

File tree

3 files changed

+7
-4
lines changed

3 files changed

+7
-4
lines changed

CHANGELOG.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,14 @@
11
# Changelog
22

3-
## 0.2.1 (2019-12-28)
3+
## 0.2.2 (2020-01-26)
4+
- Fixed bug in AttributedStringGenerator.swift
5+
- Migrated project to Xcode 11.3.1
46

7+
## 0.2.1 (2019-12-28)
58
- Simplified extension/usage of NSAttributedString generator
69
- Migrated project to Xcode 11.3
710

811
## 0.2 (2019-10-19)
9-
1012
- Implemented support for backslash escaping
1113
- Added support for using link reference definitions; not fully CommonMark-compliant yet
1214
- Migrated project to Xcode 11.1

Sources/MarkdownKit/AttributedString/AttributedStringGenerator.swift

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -260,7 +260,8 @@ open class AttributedStringGenerator {
260260

261261
open var codeStyle: String {
262262
return "font-size: \(self.codeFontSize)px;" +
263-
"font-family: \(self.codeFontFamily);"
263+
"font-family: \(self.codeFontFamily);" +
264+
"color: \(self.codeFontColor);"
264265
}
265266

266267
open var preCodeStyle: String {

Tests/MarkdownKitTests/Info.plist

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
<key>CFBundlePackageType</key>
1616
<string>BNDL</string>
1717
<key>CFBundleShortVersionString</key>
18-
<string>0.2.1</string>
18+
<string>0.2.2</string>
1919
<key>CFBundleVersion</key>
2020
<string>1</string>
2121
</dict>

0 commit comments

Comments
 (0)