summaryrefslogtreecommitdiff
path: root/src/main/kotlin/moe/nea/blog/md/Link.kt
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/kotlin/moe/nea/blog/md/Link.kt')
-rw-r--r--src/main/kotlin/moe/nea/blog/md/Link.kt11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/main/kotlin/moe/nea/blog/md/Link.kt b/src/main/kotlin/moe/nea/blog/md/Link.kt
new file mode 100644
index 0000000..f8fc858
--- /dev/null
+++ b/src/main/kotlin/moe/nea/blog/md/Link.kt
@@ -0,0 +1,11 @@
+package moe.nea.blog.md
+
+import java.io.PrintStream
+
+data class Link(val label: MarkdownFormat?, val target: String) : MarkdownFormat {
+ override fun debugFormat(printStream: PrintStream) {
+ printStream.print("<link target=$target>")
+ label?.debugFormat(printStream)
+ printStream.print("</link>")
+ }
+} \ No newline at end of file