Parse markdown in docstrings

This commit is contained in:
oakes
2014-03-31 20:10:00 -04:00
parent 7b9b5aef5d
commit 6775b9c377
2 changed files with 4 additions and 2 deletions

View File

@@ -2,6 +2,7 @@
:description "FIXME: write description"
:dependencies [[hiccup "1.0.5"]
[marginalia "0.7.1"]
[markdown-clj "0.9.41"]
[org.clojure/clojure "1.6.0"]]
:source-paths ["src/clojure"]
:java-source-paths ["src/java"]

View File

@@ -1,6 +1,7 @@
(ns play-clj-doclet.html
(:require [clojure.string :as string]
[hiccup.core :refer :all]))
[hiccup.core :refer :all]
[markdown.core :as m]))
(defn param
[[type-name param-name]]
@@ -25,7 +26,7 @@
(for [group groups]
[:div
[:h2 {} (:name group)]
(:docstring group)
(m/md-to-html-string (:docstring group))
(for [[name items] (:java group)]
[:div
(when (not= (:name group) name)