mirror of
https://github.com/McShelby/hugo-theme-relearn.git
synced 2024-11-23 07:47:54 +00:00
docs: add some tests for code formatting #175
This commit is contained in:
parent
2f5ea664dd
commit
1921dcb07c
4 changed files with 70 additions and 0 deletions
14
exampleSite/content/tests/_index.en.md
Normal file
14
exampleSite/content/tests/_index.en.md
Normal file
|
@ -0,0 +1,14 @@
|
|||
+++
|
||||
chapter = true
|
||||
hidden = true
|
||||
title = "Tests"
|
||||
weight = 5
|
||||
+++
|
||||
|
||||
### Chapter 5
|
||||
|
||||
# Tests
|
||||
|
||||
Some pages for internal testing of differnt styles
|
||||
|
||||
{{%children containerstyle="div" style="h2" description="true" %}}
|
7
exampleSite/content/tests/_index.pir.md
Normal file
7
exampleSite/content/tests/_index.pir.md
Normal file
|
@ -0,0 +1,7 @@
|
|||
+++
|
||||
chapter = true
|
||||
hidden = true
|
||||
title = "Tests"
|
||||
weight = 5
|
||||
+++
|
||||
{{< piratify >}}
|
45
exampleSite/content/tests/code/_index.en.md
Normal file
45
exampleSite/content/tests/code/_index.en.md
Normal file
|
@ -0,0 +1,45 @@
|
|||
+++
|
||||
title = "Code"
|
||||
+++
|
||||
|
||||
Some testing for different styles used in syntax highlightning and preformatted blocks.
|
||||
|
||||
## Inline Code
|
||||
|
||||
`This is some very long inline code. Where does it wrap?`
|
||||
|
||||
What about wrapping short inline code if multiple sections are written `side` `by` `side`?
|
||||
|
||||
What about wrapping short inline code if multiple sections are written `side`/`by`/`side`?
|
||||
|
||||
What about wrapping long inline code if multiple sections are written `side567` `by34567` `side567`?
|
||||
|
||||
What about wrapping long inline code if multiple sections are written `side567`/`by34567`/`side567`?
|
||||
|
||||
Can we just use a <code>simple HTML element </code>?
|
||||
|
||||
## Block Code
|
||||
|
||||
````
|
||||
Code fences without any selected language
|
||||
````
|
||||
|
||||
````json
|
||||
{
|
||||
"well": "some JSON in codefences in here"
|
||||
}
|
||||
````
|
||||
|
||||
<pre><code>
|
||||
{
|
||||
"well": "some JSON in HTML elements here"
|
||||
}
|
||||
</code></pre>
|
||||
|
||||
## Block Preformatted
|
||||
|
||||
Some preformatted stuff with markdown indention
|
||||
|
||||
<pre>
|
||||
Some preformatted stuff in HTML elements
|
||||
</pre>
|
4
exampleSite/content/tests/code/_index.pir.md
Normal file
4
exampleSite/content/tests/code/_index.pir.md
Normal file
|
@ -0,0 +1,4 @@
|
|||
+++
|
||||
title = "Code"
|
||||
+++
|
||||
{{< piratify >}}
|
Loading…
Reference in a new issue