Skip to content

Commit e113228

Browse files
committed
Cleaned up Package.swift. Updated CHANGELOG.
1 parent fd2b417 commit e113228

File tree

4 files changed

+17
-4
lines changed

4 files changed

+17
-4
lines changed

CHANGELOG.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,17 @@
11
# Changelog
22

3+
## 1.1.8 (2024-05-01)
4+
- Fix `Color.hexString` on iOS to handle black correctly
5+
- Clean up `Package.swift`
6+
- Updated `CHANGELOG`
7+
8+
## 1.1.7 (2023-04-10)
9+
- Fix handling of copyright sign when escaped as XML named character
10+
11+
## 1.1.6 (2023-04-10)
12+
- Migrate framework to Xcode 14
13+
- Fix tests related to images in attributed strings
14+
315
## 1.1.5 (2022-02-27)
416
- Bug fixes to make `AttributedStringGenerator` work with images.
517

Package.swift

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,9 @@ let package = Package(
3434
name: "MarkdownKit",
3535
platforms: [
3636
.macOS(.v10_12),
37-
.iOS(.v13)
37+
.iOS(.v13),
38+
.tvOS(.v13),
39+
.watchOS(.v6)
3840
],
3941
products: [
4042
.library(name: "MarkdownKit", targets: ["MarkdownKit"]),

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -376,5 +376,5 @@ _Swift Package Manager_ is not needed.
376376
## Copyright
377377

378378
Author: Matthias Zenger (<matthias@objecthub.net>)
379-
Copyright © 2019-2023 Google LLC.
379+
Copyright © 2019-2024 Google LLC.
380380
_Please note: This is not an official Google product._

Sources/MarkdownKit/AttributedString/Color.swift

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,12 +31,11 @@
3131
var red = 0
3232
var green = 0
3333
var blue = 0
34-
3534
if components.count >= 3 {
3635
red = Int(round(components[0] * 0xff))
3736
green = Int(round(components[1] * 0xff))
3837
blue = Int(round(components[2] * 0xff))
39-
} else if components.count == 2 {
38+
} else if components.count >= 1 {
4039
red = Int(round(components[0] * 0xff))
4140
green = Int(round(components[0] * 0xff))
4241
blue = Int(round(components[0] * 0xff))

0 commit comments

Comments
 (0)