summaryrefslogtreecommitdiff
path: root/src/main/kotlin/moe/nea/blog/md/BlockQuote.kt
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/kotlin/moe/nea/blog/md/BlockQuote.kt')
-rw-r--r--src/main/kotlin/moe/nea/blog/md/BlockQuote.kt14
1 files changed, 14 insertions, 0 deletions
diff --git a/src/main/kotlin/moe/nea/blog/md/BlockQuote.kt b/src/main/kotlin/moe/nea/blog/md/BlockQuote.kt
new file mode 100644
index 0000000..ba3824f
--- /dev/null
+++ b/src/main/kotlin/moe/nea/blog/md/BlockQuote.kt
@@ -0,0 +1,14 @@
+package moe.nea.blog.md
+
+import moe.nea.blog.util.indent
+import java.io.PrintStream
+
+class BlockQuote(val inner: MarkdownBlock) : MarkdownBlock {
+ override fun debugFormat(indent: Int, printStream: PrintStream) {
+ printStream.indent(indent)
+ printStream.println("<quote>")
+ inner.debugFormat(indent + 2, printStream)
+ printStream.indent(indent)
+ printStream.println("</quote>")
+ }
+} \ No newline at end of file