Skip to content

Commit

Permalink
Merge pull request #480 from dz-cies/patch2
Browse files Browse the repository at this point in the history
Several fixes in 7.14
  • Loading branch information
Ryan Neufeld committed Jul 20, 2015
2 parents b0259d8 + d4c4f12 commit 07a34a6
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions 07_webapps/7-14_markdown.asciidoc
Expand Up @@ -22,7 +22,8 @@ Use +markdown.core/md-to-html+ to read a Markdown document and generate a string

[source,clojure]
----
(require '[markdown.core :as md])
(require '[markdown.core :as md]
'[clojure.java.io :refer [input-stream output-stream])
(md/md-to-html "input.md" "output.html")
Expand Down Expand Up @@ -90,7 +91,7 @@ When the +:heading-anchors+ key is set to +true+, an anchor will be generated fo
[source,html]
----
<h3>
<a name=\"heading\" class=\"anchor\" href=\"#foo&#95;bar&#95;baz></a>
<a name=\"heading\" class=\"anchor\" href=\"#foo&#95;bar&#95;baz\"></a>
foo bar BAz
</h3>
----
Expand Down Expand Up @@ -133,7 +134,7 @@ Finally, we can provide a custom set of transformers to replace the built-in one

[source,clojure]
----
(markdown/md-to-html-string "#foo" :replacement-transformers [capitalize])
(md/md-to-html-string "#foo" :replacement-transformers [capitalize])
----

==== See Also
Expand Down

0 comments on commit 07a34a6

Please sign in to comment.