diff options
author | Linnea Gräf <nea@nea.moe> | 2024-03-24 22:36:36 +0100 |
---|---|---|
committer | Linnea Gräf <nea@nea.moe> | 2024-03-24 22:36:36 +0100 |
commit | 9513802ef7637a469c72a2dedd68d5bf9215ba4d (patch) | |
tree | 0b433dc2e35a2dbd138d4075c0b5f9fb2db528d3 /src/main/kotlin/moe/nea/blog/md/BlockQuote.kt | |
parent | e47481aa60c19abcb246386bf48a83ecccd238e4 (diff) | |
download | blog-infra-9513802ef7637a469c72a2dedd68d5bf9215ba4d.tar.gz blog-infra-9513802ef7637a469c72a2dedd68d5bf9215ba4d.tar.bz2 blog-infra-9513802ef7637a469c72a2dedd68d5bf9215ba4d.zip |
Add block quotes
Diffstat (limited to 'src/main/kotlin/moe/nea/blog/md/BlockQuote.kt')
-rw-r--r-- | src/main/kotlin/moe/nea/blog/md/BlockQuote.kt | 14 |
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 |