mirror of
https://github.com/McShelby/hugo-theme-relearn.git
synced 2025-06-01 06:24:04 +00:00
notice: fix styling for Markdown code boxes #906
This commit is contained in:
parent
86fa3c70f2
commit
1858bf48a3
2 changed files with 16 additions and 14 deletions
exampleSite/content/shortcodes
|
@ -313,27 +313,29 @@ Just a box
|
|||
#### Code with Collapsed Colored Borders
|
||||
|
||||
````
|
||||
```c
|
||||
// Normal code:
|
||||
printf( "Hello world\n" )
|
||||
```
|
||||
> [!orange]
|
||||
> ```c
|
||||
> // With colored border in Markdown syntax
|
||||
> printf( "Hello world\n" )
|
||||
> ```
|
||||
|
||||
{{%/* notice style="red" title="" */%}}
|
||||
{{%/* notice style="red" */%}}
|
||||
```c
|
||||
// With colored border
|
||||
// With colored border in Shortcode syntax
|
||||
printf( "Hello world\n" )
|
||||
```
|
||||
{{%/* /notice */%}}
|
||||
````
|
||||
|
||||
```c
|
||||
// Normal code:
|
||||
printf( "Hello world\n" )
|
||||
```
|
||||
> [!orange]
|
||||
> ```c
|
||||
> // With colored border in Markdown syntax
|
||||
> printf( "Hello world\n" )
|
||||
> ```
|
||||
|
||||
{{% notice style="red" title="" %}}
|
||||
{{% notice style="red" %}}
|
||||
```c
|
||||
// With colored border
|
||||
// With colored border in Shortcode syntax
|
||||
printf( "Hello world\n" )
|
||||
```
|
||||
{{% /notice %}}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue