mirror of
https://github.com/zhigang1992/GitHawk.git
synced 2026-05-27 08:42:56 +08:00
nested lists alternate bullets
This commit is contained in:
@@ -200,7 +200,8 @@ func travelAST(
|
||||
let isInsideBulletedList = element.parent?.type == .bulletedList
|
||||
let modifier: String
|
||||
if isInsideBulletedList {
|
||||
modifier = "\(Strings.bullet) "
|
||||
let bullet = listLevel % 2 == 0 ? Strings.bulletHollow : Strings.bullet
|
||||
modifier = "\(bullet) "
|
||||
} else if element.numberedListPosition > 0 {
|
||||
modifier = "\(element.numberedListPosition). "
|
||||
} else {
|
||||
|
||||
@@ -22,5 +22,6 @@ enum Strings {
|
||||
static let merged = NSLocalizedString("Merged", comment: "")
|
||||
static let locked = NSLocalizedString("Locked", comment: "")
|
||||
static let bullet = "\u{2022}"
|
||||
static let bulletHollow = "\u{25E6}"
|
||||
|
||||
}
|
||||
|
||||
@@ -32,7 +32,7 @@
|
||||
</dict>
|
||||
</array>
|
||||
<key>CFBundleVersion</key>
|
||||
<string>1159</string>
|
||||
<string>1164</string>
|
||||
<key>ITSAppUsesNonExemptEncryption</key>
|
||||
<false/>
|
||||
<key>LSApplicationQueriesSchemes</key>
|
||||
|
||||
Reference in New Issue
Block a user