Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 07a34a6

Browse files
author
Ryan Neufeld
committed
Merge pull request clojure-cookbook#480 from dz-cies/patch2
Several fixes in 7.14
2 parents b0259d8 + d4c4f12 commit 07a34a6

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

07_webapps/7-14_markdown.asciidoc

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,8 @@ Use +markdown.core/md-to-html+ to read a Markdown document and generate a string
2222

2323
[source,clojure]
2424
----
25-
(require '[markdown.core :as md])
25+
(require '[markdown.core :as md]
26+
'[clojure.java.io :refer [input-stream output-stream])
2627
2728
(md/md-to-html "input.md" "output.html")
2829
@@ -90,7 +91,7 @@ When the +:heading-anchors+ key is set to +true+, an anchor will be generated fo
9091
[source,html]
9192
----
9293
<h3>
93-
<a name=\"heading\" class=\"anchor\" href=\"#foo&#95;bar&#95;baz></a>
94+
<a name=\"heading\" class=\"anchor\" href=\"#foo&#95;bar&#95;baz\"></a>
9495
foo bar BAz
9596
</h3>
9697
----
@@ -133,7 +134,7 @@ Finally, we can provide a custom set of transformers to replace the built-in one
133134

134135
[source,clojure]
135136
----
136-
(markdown/md-to-html-string "#foo" :replacement-transformers [capitalize])
137+
(md/md-to-html-string "#foo" :replacement-transformers [capitalize])
137138
----
138139

139140
==== See Also

0 commit comments

Comments
 (0)