Fix id of Items, saving
This commit is contained in:
@@ -37,7 +37,7 @@ struct GalleryBlock: BlockLineProcessor {
|
||||
$0.imageSet(width: imageWidth, height: imageWidth, language: language)
|
||||
}
|
||||
imageSets.forEach(results.require)
|
||||
let id = firstImage.id.replacingOccurrences(of: ".", with: "-")
|
||||
let id = firstImage.identifier.replacingOccurrences(of: ".", with: "-")
|
||||
let gallery = ImageGallery(id: id, images: imageSets, standalone: true)
|
||||
results.require(footer: gallery.standaloneFooter)
|
||||
results.require(headers: .swiperJs, .swiperCss)
|
||||
|
@@ -50,7 +50,7 @@ struct PhoneScreensBlock: OrderedKeyBlockProcessor {
|
||||
}
|
||||
if key == .tall {
|
||||
if tall != nil {
|
||||
print("Another tall image: \(file.id)")
|
||||
print("Another tall image: \(file.identifier)")
|
||||
invalid(markdown)
|
||||
return ""
|
||||
}
|
||||
@@ -69,7 +69,7 @@ struct PhoneScreensBlock: OrderedKeyBlockProcessor {
|
||||
}
|
||||
// key == .wide
|
||||
if wide != nil {
|
||||
print("Another wide image: \(file.id)")
|
||||
print("Another wide image: \(file.identifier)")
|
||||
invalid(markdown)
|
||||
return ""
|
||||
}
|
||||
|
Reference in New Issue
Block a user