Skip to content

Commit e3b0791

Browse files
committed
Fix accessibility bug. Update change log.
1 parent 24b2f90 commit e3b0791

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

CHANGELOG.md

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

3+
## 1.1.2 (2021-06-30)
4+
- Allow creation of definition lists outside of MarkdownKit
5+
36
## 1.1.0 (2021-05-12)
47
- Make abstract syntax trees extensible
58
- Provide a simple means to define new types of emphasis

Sources/MarkdownKit/Block.swift

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -283,6 +283,11 @@ public struct Definition: Equatable, CustomStringConvertible, CustomDebugStringC
283283
public let item: Text
284284
public let descriptions: Blocks
285285

286+
public init(item: Text, descriptions: Blocks) {
287+
self.item = item
288+
self.descriptions = descriptions
289+
}
290+
286291
public var description: String {
287292
return "\(self.item.debugDescription) : \(Block.string(from: self.descriptions))"
288293
}

0 commit comments

Comments
 (0)