Add more file properties, organize storage, add video block
This commit is contained in:
17
CHDataManagement/Generator/Blocks/OtherCodeBlock.swift
Normal file
17
CHDataManagement/Generator/Blocks/OtherCodeBlock.swift
Normal file
@ -0,0 +1,17 @@
|
||||
|
||||
struct OtherCodeBlock {
|
||||
|
||||
private let codeHighlightFooter = "<script>hljs.highlightAll();</script>"
|
||||
|
||||
let results: PageGenerationResults
|
||||
|
||||
init(results: PageGenerationResults) {
|
||||
self.results = results
|
||||
}
|
||||
|
||||
func process(html: String) -> String {
|
||||
results.require(header: .codeHightlighting)
|
||||
results.require(footer: codeHighlightFooter)
|
||||
return html // Just use normal code highlighting
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user