summaryrefslogtreecommitdiff
path: root/src/main/kotlin/moe/nea/blog/md/Document.kt
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/kotlin/moe/nea/blog/md/Document.kt')
-rw-r--r--src/main/kotlin/moe/nea/blog/md/Document.kt11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/main/kotlin/moe/nea/blog/md/Document.kt b/src/main/kotlin/moe/nea/blog/md/Document.kt
new file mode 100644
index 0000000..ce83ef1
--- /dev/null
+++ b/src/main/kotlin/moe/nea/blog/md/Document.kt
@@ -0,0 +1,11 @@
+package moe.nea.blog.md
+
+import java.io.PrintStream
+
+data class Document(
+ val list: List<MarkdownBlock>
+) : MarkdownElement {
+ fun debugFormat(printStream: PrintStream) {
+ list.forEach { it.debugFormat(0, printStream) }
+ }
+} \ No newline at end of file