File tree Expand file tree Collapse file tree 3 files changed +7
-7
lines changed Expand file tree Collapse file tree 3 files changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -36,7 +36,7 @@ print(markdown)
36
36
37
37
Executing this code will result in the follwing data structure of type ` Block ` getting printed:
38
38
39
- ```
39
+ ``` swift
40
40
document (heading (1 , text (" Header" )),
41
41
heading (2 , text (" Sub-header" )),
42
42
paragraph (text (" And this is a " ),
@@ -146,7 +146,7 @@ print(headers)
146
146
147
147
This will print an array with the following two entries:
148
148
149
- ```
149
+ ``` swift
150
150
[" First Header" , " Second Header" ]
151
151
```
152
152
Original file line number Diff line number Diff line change @@ -22,7 +22,7 @@ import Foundation
22
22
23
23
extension String {
24
24
25
- func encodingPredefinedXmlEntities( ) -> String {
25
+ public func encodingPredefinedXmlEntities( ) -> String {
26
26
var res = " "
27
27
var pos = self . startIndex
28
28
// find the first character that requires encoding
@@ -56,7 +56,7 @@ extension String {
56
56
}
57
57
}
58
58
59
- func encodingNamedCharacters( ) -> String {
59
+ public func encodingNamedCharacters( ) -> String {
60
60
var res = " "
61
61
for ch in self {
62
62
if let charRef = NamedCharacters . characterNameMap [ ch] {
@@ -68,7 +68,7 @@ extension String {
68
68
return res
69
69
}
70
70
71
- func decodingNamedCharacters( ) -> String {
71
+ public func decodingNamedCharacters( ) -> String {
72
72
var res = " "
73
73
var pos = self . startIndex
74
74
// find the next `&`
@@ -103,7 +103,7 @@ extension String {
103
103
}
104
104
}
105
105
106
- static let predefinedEntities : CharacterSet = {
106
+ private static let predefinedEntities : CharacterSet = {
107
107
var set = CharacterSet ( )
108
108
set. insert ( charactersIn: " \" &'<> " )
109
109
return set
Original file line number Diff line number Diff line change 15
15
<key >CFBundlePackageType </key >
16
16
<string >BNDL </string >
17
17
<key >CFBundleShortVersionString </key >
18
- <string >1.0.2 </string >
18
+ <string >1.0.4 </string >
19
19
<key >CFBundleVersion </key >
20
20
<string >1 </string >
21
21
</dict >
You can’t perform that action at this time.
0 commit comments