Skip to content

Commit

Permalink
Cleaned up Package.swift. Updated CHANGELOG.
Browse files Browse the repository at this point in the history
  • Loading branch information
objecthub committed May 1, 2024
1 parent fd2b417 commit e113228
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 4 deletions.
12 changes: 12 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,17 @@
# Changelog

## 1.1.8 (2024-05-01)
- Fix `Color.hexString` on iOS to handle black correctly
- Clean up `Package.swift`
- Updated `CHANGELOG`

## 1.1.7 (2023-04-10)
- Fix handling of copyright sign when escaped as XML named character

## 1.1.6 (2023-04-10)
- Migrate framework to Xcode 14
- Fix tests related to images in attributed strings

## 1.1.5 (2022-02-27)
- Bug fixes to make `AttributedStringGenerator` work with images.

Expand Down
4 changes: 3 additions & 1 deletion Package.swift
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,9 @@ let package = Package(
name: "MarkdownKit",
platforms: [
.macOS(.v10_12),
.iOS(.v13)
.iOS(.v13),
.tvOS(.v13),
.watchOS(.v6)
],
products: [
.library(name: "MarkdownKit", targets: ["MarkdownKit"]),
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -376,5 +376,5 @@ _Swift Package Manager_ is not needed.
## Copyright

Author: Matthias Zenger (<[email protected]>)
Copyright © 2019-2023 Google LLC.
Copyright © 2019-2024 Google LLC.
_Please note: This is not an official Google product._
3 changes: 1 addition & 2 deletions Sources/MarkdownKit/AttributedString/Color.swift
Original file line number Diff line number Diff line change
Expand Up @@ -31,12 +31,11 @@
var red = 0
var green = 0
var blue = 0

if components.count >= 3 {
red = Int(round(components[0] * 0xff))
green = Int(round(components[1] * 0xff))
blue = Int(round(components[2] * 0xff))
} else if components.count == 2 {
} else if components.count >= 1 {
red = Int(round(components[0] * 0xff))
green = Int(round(components[0] * 0xff))
blue = Int(round(components[0] * 0xff))
Expand Down

0 comments on commit e113228

Please sign in to comment.