Liking cljdoc? Tell your friends :D

cljdoc-exerciser.core


exercise1clj

(exercise1 d e f)

Will someone ever link to me?

Will someone ever link to me?
sourceraw docstring

exercise2clj

(exercise2)

A docstring can contain CommonMark formatted text.

Lists

  1. one
  2. two
    • buckle
      • my
        • shoe

Blockquotes

A quote

a nested quote

a very nested quote

Paragraphs

If you want a paragraph to include a linebreak,
you can do that.

Tables

Tables are a CommonMark extension but supported by cljdoc

LeftCenteredRight
letspeanut butter100
filland10
thispickles1

Code blocks

(defn exercise
  "A docstring can contain CommonMark formatted text."
  []
  (+ 4 5 6))

Links

Maybe we want to link to a cljdoc article:

cljdoc features article on cljdoc.org

Wikilinks

Wikilinks are a cljdoc extension and allow you to link to api functions. They only work in docstrings.

Let's link to the exercise1 function in this namespace.

**A docstring can contain CommonMark formatted text.**

**Lists**

1. one
2. two
    - buckle
        - my
          - shoe

**Blockquotes**

> A quote
>> a nested quote
>>> a very nested quote

**Paragraphs**

If you want a paragraph to include a linebreak, \
you can do that.

**Tables**

Tables are a CommonMark extension but supported by cljdoc

| Left     |  Centered     | Right |
|----------|:-------------:|------:|
| lets     | peanut butter |   100 |
| fill     | and           |    10 |
| this     | pickles       |     1 |

**Code blocks**

```clojure
(defn exercise
  "A docstring can contain CommonMark formatted text."
  []
  (+ 4 5 6))
```

**Links**

Maybe we want to link to a cljdoc article:

[cljdoc features article on cljdoc.org](https://cljdoc.org/d/lread/cljdoc-exerciser/1.0.26/api/cljdoc-exerciser.core)

**Wikilinks**

Wikilinks are a cljdoc extension and allow you to link to api functions.
They only work in docstrings.

Let's link to the [[exercise1]] function in this namespace.
sourceraw docstring

exercise3clj

(exercise3 x y z)

Linking to images might be of interest, I suppose.

Will one of my local images show up? I certainly hope so.

my local test image should appear here

An external image should work fine too:

an external image should appear here

Linking to images might be of interest, I suppose.

Will one of my local images show up? I certainly hope so.

![my local test image should appear here](images/test-image-1.png "my local test image text")

An external image should work fine too:

![an external image should appear here](https://dummyimage.com/300x100/000000/fff&text=an+external+image)
sourceraw docstring

exercise4clj

(exercise4 a b c)

Using headings in a docstring might be ridiculous, but you can do it.

Heading 1

Heading 2

Heading 3

Heading 4

Heading 5

this is too much, I am heading home.

Using headings in a docstring might be ridiculous, but you can do it.

# Heading 1
## Heading 2
### Heading 3
#### Heading 4
##### Heading 5
this is too much, I am heading home.
sourceraw docstring

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close