summaryrefslogtreecommitdiff
path: root/src/main/kotlin/moe/nea/blog/md/Italics.kt
diff options
context:
space:
mode:
authorLinnea Gräf <nea@nea.moe>2024-03-24 14:35:37 +0100
committerLinnea Gräf <nea@nea.moe>2024-03-24 14:35:37 +0100
commitc57016dc5a1f502b637c2f77bcf724165387ef83 (patch)
tree40f82e94e0f3229d081860d893a0433244bcba4c /src/main/kotlin/moe/nea/blog/md/Italics.kt
downloadblog-infra-c57016dc5a1f502b637c2f77bcf724165387ef83.tar.gz
blog-infra-c57016dc5a1f502b637c2f77bcf724165387ef83.tar.bz2
blog-infra-c57016dc5a1f502b637c2f77bcf724165387ef83.zip
Add markdown parser
Diffstat (limited to 'src/main/kotlin/moe/nea/blog/md/Italics.kt')
-rw-r--r--src/main/kotlin/moe/nea/blog/md/Italics.kt11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/main/kotlin/moe/nea/blog/md/Italics.kt b/src/main/kotlin/moe/nea/blog/md/Italics.kt
new file mode 100644
index 0000000..47d8db2
--- /dev/null
+++ b/src/main/kotlin/moe/nea/blog/md/Italics.kt
@@ -0,0 +1,11 @@
+package moe.nea.blog.md
+
+import java.io.PrintStream
+
+data class Italics(val inner: MarkdownFormat) : MarkdownFormat {
+ override fun debugFormat(printStream: PrintStream) {
+ printStream.print("<i>")
+ inner.debugFormat(printStream)
+ printStream.print("</i>")
+ }
+} \ No newline at end of file