From 1921dcb07c9b6c36edb222bafa322974369ac928 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=B6ren=20Weber?= Date: Wed, 16 Feb 2022 23:21:22 +0100 Subject: [PATCH] docs: add some tests for code formatting #175 --- exampleSite/content/tests/_index.en.md | 14 ++++++ exampleSite/content/tests/_index.pir.md | 7 +++ exampleSite/content/tests/code/_index.en.md | 45 ++++++++++++++++++++ exampleSite/content/tests/code/_index.pir.md | 4 ++ 4 files changed, 70 insertions(+) create mode 100644 exampleSite/content/tests/_index.en.md create mode 100644 exampleSite/content/tests/_index.pir.md create mode 100644 exampleSite/content/tests/code/_index.en.md create mode 100644 exampleSite/content/tests/code/_index.pir.md diff --git a/exampleSite/content/tests/_index.en.md b/exampleSite/content/tests/_index.en.md new file mode 100644 index 0000000000..a5d69e65fd --- /dev/null +++ b/exampleSite/content/tests/_index.en.md @@ -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" %}} diff --git a/exampleSite/content/tests/_index.pir.md b/exampleSite/content/tests/_index.pir.md new file mode 100644 index 0000000000..5022cbce65 --- /dev/null +++ b/exampleSite/content/tests/_index.pir.md @@ -0,0 +1,7 @@ ++++ +chapter = true +hidden = true +title = "Tests" +weight = 5 ++++ +{{< piratify >}} \ No newline at end of file diff --git a/exampleSite/content/tests/code/_index.en.md b/exampleSite/content/tests/code/_index.en.md new file mode 100644 index 0000000000..b793a34099 --- /dev/null +++ b/exampleSite/content/tests/code/_index.en.md @@ -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 simple HTML element ? + +## Block Code + +```` +Code fences without any selected language +```` + +````json +{ + "well": "some JSON in codefences in here" +} +```` + +

+{
+  "well": "some JSON in HTML elements here"
+}
+
+ +## Block Preformatted + + Some preformatted stuff with markdown indention + +
+Some preformatted stuff in HTML elements
+
diff --git a/exampleSite/content/tests/code/_index.pir.md b/exampleSite/content/tests/code/_index.pir.md new file mode 100644 index 0000000000..a384d10cf8 --- /dev/null +++ b/exampleSite/content/tests/code/_index.pir.md @@ -0,0 +1,4 @@ ++++ +title = "Code" ++++ +{{< piratify >}} \ No newline at end of file