Skip to content

Commit

Permalink
add more about docblocks (#33279)
Browse files Browse the repository at this point in the history
* add more about docblocks

* remove excess whitespace

* Update stdlib/Markdown/docs/src/index.md

Co-Authored-By: Morten Piibeleht <[email protected]>

* Remove instruction on how to style.

* Update stdlib/Markdown/docs/src/index.md

Co-Authored-By: Morten Piibeleht <[email protected]>

Co-authored-by: Morten Piibeleht <[email protected]>
  • Loading branch information
oxinabox and mortenpi authored Apr 29, 2020
1 parent 55b5776 commit 6eb96da
Showing 1 changed file with 13 additions and 4 deletions.
17 changes: 13 additions & 4 deletions stdlib/Markdown/docs/src/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -365,12 +365,21 @@ They can be defined using the following `!!!` syntax:
This warning admonition has a custom title: `"Beware!"`.
```
The type of the admonition can be any word, but some types produce special styling,
namely (in order of decreasing severity): `danger`, `warning`, `info`/`note`, and `tip`.
The type of the admonition can be any word made up of only lowercase Latin characters (a-z), but some types produce special styling,
namely (in order of decreasing severity): `danger`, `warning`, `info`, `note`, and `tip`.
A custom title for the box can be provided as a string (in double quotes) after the admonition type.
If no title text is specified after the admonition type, then the title used will be the type of the block,
i.e. `"Note"` in the case of the `note` admonition.
For that standard types (`danger`, `warning`... etc_, if no title text is specified after the
admonition type, then the type title used will be the type of the block.
E.g. `"Note"` in the case of the `note` admonition.
If you would like to define your own block, for example a `terminology` block
used like so:
```
!!! terminology "julia vs Julia"
Strictly speaking, Julia refers to the language,
and julia the standard implementation.
```
Admonitions, like most other toplevel elements, can contain other toplevel elements.
Expand Down

0 comments on commit 6eb96da

Please sign in to comment.