Skip to content

Commit

Permalink
Docs
Browse files Browse the repository at this point in the history
  • Loading branch information
pedrorgirardi committed Aug 23, 2023
1 parent e1d0e9d commit 4dfaebe
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/main/clojure/convex_web/site/gui.cljs
Original file line number Diff line number Diff line change
Expand Up @@ -942,7 +942,13 @@
{:ref highlight-element}
value]])

(defn Markdown [markdown]
(defn Markdown
"Reagent component to render Markdown using a custom code component.
`markdown` is a string.
https://github.com/remarkjs/react-markdown"
[markdown]
[:> ReactMarkdown
{:components
{:code (r/reactify-component MarkdownCodeBlock)}}
Expand Down

0 comments on commit 4dfaebe

Please sign in to comment.