Blog Page and Style Test
2023-09-30
Auto translated into English by AI.
This Is a Level-One Heading
Write here; this is a blockquote This is italic. Underline
strikethrough bold
-
List
-
Sublist
-
The above
-
Sub-sublist
-
-
-
Numbered list
-
This is two
-
A here
-
B here
-
-
A toggle list looks
like thisIs there anything here?
123123
Remember Not to Put Colons in Headings
Below is an image with a caption

Just write something
Below Is a Bookmark (I'm a Level-Two Heading)
bilibili (゜-゜)つロ Cheers~-bilibili
This is a caption
-
You can write todos, too
-
There's quite a lot to do
This is a code block
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
}