hugo-theme-relearn/exampleSite/content/tests/code/_index.en.md

52 lines
1.1 KiB
Markdown
Raw Normal View History

+++
2022-10-31 11:10:36 +00:00
description = "Some testing for different styles used in syntax highlighting and preformatted blocks"
title = "Code"
+++
2022-10-31 11:10:36 +00:00
Some testing for different styles used in syntax highlighting 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"
}
````
2022-02-17 19:09:50 +00:00
<pre><code>{
"well": "some JSON in HTML elements here"
}
</code></pre>
2022-07-03 13:01:19 +00:00
````jsonxmylmsl
{
2022-10-31 11:10:36 +00:00
"well": "Code fences with non existing language"
2022-07-03 13:01:19 +00:00
}
````
## Block Preformatted
2022-10-31 11:10:36 +00:00
Some preformatted stuff with markdown indentation
<pre>
Some preformatted stuff in HTML elements
</pre>