🚈 Blog 页面、样式测试
2024-11-13
这是一级标题
在这里写字,这里是引用框 这是 斜体。 下划线 删除 加粗
-
列表
-
序号列表 -
这是二
记得标题不要打冒号

下面是Bookmark(我是二级标题)
验证码_哔哩哔哩
https://www.bilibili.com/
💡
kotlin
fun readChildrenBlocks(currentPath: Path): List<DataBlock>? {
val files = currentPath.toFile().listFiles()
val dataBlocks = if (currentPath.hasChildren() && files != null) {
val handledFiles = files.filter { file ->
file != null && file.isFile && file.name.endsWith(".json")
}.sortedBy { it.name.split('_').first().toInt() }
val list = ArrayList<DataBlock>()
for (file in handledFiles) {
val read = file.readText()
val block = NotionClient.defaultJsonSerializer.toBlock(read)
val dataBlock = if (block is ImageBlock){
ImageDataBlock(block, currentPath)
}else{
DataBlock(block, currentPath)
}
list.add(dataBlock)
}
list
} else null
return dataBlocks
}