38 lines
1.4 KiB
Markdown
38 lines
1.4 KiB
Markdown
+++
|
|
title = "Notes & warnings"
|
|
+++
|
|
|
|
**Infusion** acknowledges that simple markdown is limiting when it comes to writing compelling documentation, so it provides a number of "shortcodes". Shortcodes offer a simple syntax for including rich content. For example, **Infusion** provides shortcodes for including notes and warnings.
|
|
|
|
## Notes
|
|
|
|
You may wish to pick out some content in your pattern's documentation as a note — an aside to the main thrust of the pattern's description. This is possible using the following syntax:
|
|
|
|
{{<codeBlock>}}
|
|
{{% note %}}
|
|
This is a note! It's something the reader may like to know about but is supplementary to the main content. Use notes when something may be interesting but not critical.
|
|
{{% /note %}}
|
|
{{</codeBlock>}}
|
|
|
|
Notes render like this:
|
|
|
|
{{% note %}}
|
|
This is a note! It's something the reader may like to know about but is supplementary to the main content. Use notes when something may be interesting but not critical.
|
|
{{% /note %}}
|
|
|
|
## Warnings
|
|
|
|
Warnings are like notes, but with more urgency.
|
|
|
|
{{<codeBlock>}}
|
|
{{% warning %}}
|
|
This is a warning! It's about something the reader should be careful to do or to avoid doing. Use warnings when something could go wrong.
|
|
{{% /warning %}}
|
|
{{</codeBlock>}}
|
|
|
|
Warning render like this:
|
|
|
|
{{% warning %}}
|
|
This is a warning! It's about something the reader should be careful to do or to avoid doing. Use warnings when something could go wrong.
|
|
{{% /warning %}}
|