➕ Add support for markdown within notes & warnings (#64)
This commit is contained in:
parent
ffdb78849e
commit
ae30c7d3b8
|
@ -21,24 +21,24 @@ Even a happy life cannot be without a measure of darkness, and the word happy wo
|
||||||
|
|
||||||
```
|
```
|
||||||
{{</* note */>}}
|
{{</* 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.
|
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. You can also *include* **markdown** stuffs like `code`.
|
||||||
{{</* /note */>}}
|
{{</* /note */>}}
|
||||||
```
|
```
|
||||||
|
|
||||||
{{< note >}}
|
{{< 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.
|
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. You can also *include* **markdown** stuffs like `code`.
|
||||||
{{< /note >}}
|
{{< /note >}}
|
||||||
|
|
||||||
## warning note
|
## warning note
|
||||||
|
|
||||||
```
|
```
|
||||||
{{</* warning */>}}
|
{{</* 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.
|
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. You can also *include* **markdown** stuffs like `code`.
|
||||||
{{</* /warning */>}}
|
{{</* /warning */>}}
|
||||||
```
|
```
|
||||||
|
|
||||||
{{< warning >}}
|
{{< 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.
|
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. You can also *include* **markdown** stuffs like `code`.
|
||||||
{{< /warning >}}
|
{{< /warning >}}
|
||||||
|
|
||||||
## cmd
|
## cmd
|
||||||
|
|
|
@ -3,6 +3,6 @@
|
||||||
<svg class="sign" aria-hidden="true" viewBox="0 0 41.667306 41.66729" focusable="false">
|
<svg class="sign" aria-hidden="true" viewBox="0 0 41.667306 41.66729" focusable="false">
|
||||||
<use xlink:href="#info"></use>
|
<use xlink:href="#info"></use>
|
||||||
</svg>
|
</svg>
|
||||||
{{ .Inner }}
|
{{ .Inner | markdownify }}
|
||||||
</div>
|
</div>
|
||||||
</aside>
|
</aside>
|
||||||
|
|
|
@ -3,6 +3,6 @@
|
||||||
<svg class="sign" aria-hidden="true" viewBox="0 0 48.430474 41.646302" focusable="false">
|
<svg class="sign" aria-hidden="true" viewBox="0 0 48.430474 41.646302" focusable="false">
|
||||||
<use xlink:href="#warning"></use>
|
<use xlink:href="#warning"></use>
|
||||||
</svg>
|
</svg>
|
||||||
{{ .Inner }}
|
{{ .Inner | markdownify }}
|
||||||
</div>
|
</div>
|
||||||
</aside>
|
</aside>
|
||||||
|
|
Loading…
Reference in New Issue
Block a user