docs: add some tests for code formatting #175

This commit is contained in:
Sören Weber 2022-02-16 23:21:22 +01:00
parent 2f5ea664dd
commit 1921dcb07c
No known key found for this signature in database
GPG key ID: 07D17FF580AE7589
4 changed files with 70 additions and 0 deletions

View 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" %}}

View file

@ -0,0 +1,7 @@
+++
chapter = true
hidden = true
title = "Tests"
weight = 5
+++
{{< piratify >}}

View 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>

View file

@ -0,0 +1,4 @@
+++
title = "Code"
+++
{{< piratify >}}