nested lists alternate bullets

This commit is contained in:
Ryan Nystrom
2017-07-31 07:37:48 -06:00
parent 9bec226809
commit 5586fd568e
3 changed files with 4 additions and 2 deletions

View File

@@ -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 {

View File

@@ -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}"
}

View File

@@ -32,7 +32,7 @@
</dict>
</array>
<key>CFBundleVersion</key>
<string>1159</string>
<string>1164</string>
<key>ITSAppUsesNonExemptEncryption</key>
<false/>
<key>LSApplicationQueriesSchemes</key>