Parsing one-liners.
timgluz opened this issue · 1 comments
Hi,
thanks for nice library and great example for Instaparse.
I have a stupid question.
Does markdown-to-html only supports multiline strings?
I get exeception, if i try to execute
(markdown-to-html "** p **")
:
IllegalArgumentException No matching clause: :index hitman.core/output-html/iter--2689--2693/fn--2694/fn--2695 (core.clj:55)
Currently i'm using this workaround ~ i'm presenting all text as one big paragraph
(-> "some text" (str \newline \newline) markdown-to-text)
Is it intentionally designed that way?
ps: What you think about adding nice dependency badge into your project's README? As it is on this page here: http://www.versioneye.com/clojure/hitman:hitman/0.1.0 - ( click on badge to get proper markdown )
Yeah, a quick glance at the parser is telling me that you need at least one paragraph for it to parse properly, since a valid input is structured as a sequence of Block
s. If you want to write a fix, feel free to add a pull request. I'll add the dependency badge though, that looks cool.