aboutsummaryrefslogtreecommitdiff
path: root/dottydoc/jvm/src/dotty/tools/dottydoc/model/CommentParsers.scala
diff options
context:
space:
mode:
Diffstat (limited to 'dottydoc/jvm/src/dotty/tools/dottydoc/model/CommentParsers.scala')
-rw-r--r--dottydoc/jvm/src/dotty/tools/dottydoc/model/CommentParsers.scala16
1 files changed, 16 insertions, 0 deletions
diff --git a/dottydoc/jvm/src/dotty/tools/dottydoc/model/CommentParsers.scala b/dottydoc/jvm/src/dotty/tools/dottydoc/model/CommentParsers.scala
new file mode 100644
index 000000000..dce8f4a69
--- /dev/null
+++ b/dottydoc/jvm/src/dotty/tools/dottydoc/model/CommentParsers.scala
@@ -0,0 +1,16 @@
+package dotty.tools
+package dottydoc
+package model
+
+object CommentParsers {
+ import comment._
+ import BodyParsers._
+
+ sealed class WikiParser
+ extends CommentCleaner with CommentParser with CommentCooker {
+ def parseHtml(str: String): String =
+ parse(clean(str), str).toHtml
+ }
+
+ val wikiParser = new WikiParser
+}