Skip to content

Commit b0fc30d

Browse files
committed
Small access and documentation fixes.
1 parent 1c0c90d commit b0fc30d

File tree

3 files changed

+7
-7
lines changed

3 files changed

+7
-7
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ print(markdown)
3636

3737
Executing this code will result in the follwing data structure of type `Block` getting printed:
3838

39-
```
39+
```swift
4040
document(heading(1, text("Header")),
4141
heading(2, text("Sub-header")),
4242
paragraph(text("And this is a "),
@@ -146,7 +146,7 @@ print(headers)
146146

147147
This will print an array with the following two entries:
148148

149-
```
149+
```swift
150150
["First Header", "Second Header"]
151151
```
152152

Sources/MarkdownKit/HTML/String+Entities.swift

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ import Foundation
2222

2323
extension String {
2424

25-
func encodingPredefinedXmlEntities() -> String {
25+
public func encodingPredefinedXmlEntities() -> String {
2626
var res = ""
2727
var pos = self.startIndex
2828
// find the first character that requires encoding
@@ -56,7 +56,7 @@ extension String {
5656
}
5757
}
5858

59-
func encodingNamedCharacters() -> String {
59+
public func encodingNamedCharacters() -> String {
6060
var res = ""
6161
for ch in self {
6262
if let charRef = NamedCharacters.characterNameMap[ch] {
@@ -68,7 +68,7 @@ extension String {
6868
return res
6969
}
7070

71-
func decodingNamedCharacters() -> String {
71+
public func decodingNamedCharacters() -> String {
7272
var res = ""
7373
var pos = self.startIndex
7474
// find the next `&`
@@ -103,7 +103,7 @@ extension String {
103103
}
104104
}
105105

106-
static let predefinedEntities: CharacterSet = {
106+
private static let predefinedEntities: CharacterSet = {
107107
var set = CharacterSet()
108108
set.insert(charactersIn: "\"&'<>")
109109
return set

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>1.0.2</string>
18+
<string>1.0.4</string>
1919
<key>CFBundleVersion</key>
2020
<string>1</string>
2121
</dict>

0 commit comments

Comments
 (0)