diff options
Diffstat (limited to 'src/main/kotlin/moe/nea/blog/md/Header.kt')
-rw-r--r-- | src/main/kotlin/moe/nea/blog/md/Header.kt | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/main/kotlin/moe/nea/blog/md/Header.kt b/src/main/kotlin/moe/nea/blog/md/Header.kt new file mode 100644 index 0000000..fab2306 --- /dev/null +++ b/src/main/kotlin/moe/nea/blog/md/Header.kt @@ -0,0 +1,11 @@ +package moe.nea.blog.md + +import moe.nea.blog.util.indent +import java.io.PrintStream + +data class Header(val level: Int, val text: String) : MarkdownBlock { + override fun debugFormat(indent: Int, printStream: PrintStream) { + printStream.indent(indent) + printStream.println("header level=$level: $text") + } +}
\ No newline at end of file |