From 76007c07dee8500a6ce993be2a29ae1bb550bb22 Mon Sep 17 00:00:00 2001 From: Jackson Chen Date: Sun, 16 Apr 2023 20:40:16 +0200 Subject: Make code blocks scrollable in case of overflow Fixes #263 References: https://github.com/cstate/cstate/issues/263 --- layouts/partials/meta.html | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/layouts/partials/meta.html b/layouts/partials/meta.html index c8381a9..577f4a0 100644 --- a/layouts/partials/meta.html +++ b/layouts/partials/meta.html @@ -107,6 +107,10 @@ padding: 16px; } + .contain pre { + overflow-x: scroll; + } + .contain--more { max-width: 680px; } .center { text-align: center; } -- cgit v1.2.3-70-g09d2 From c5851c4adfc19b629069f821dc4ba62b58869c04 Mon Sep 17 00:00:00 2001 From: Jackson Chen Date: Sun, 16 Apr 2023 20:41:59 +0200 Subject: Add example formatting page --- .../content/issues/2023-04-16-formatting-testing.md | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 exampleSite/content/issues/2023-04-16-formatting-testing.md diff --git a/exampleSite/content/issues/2023-04-16-formatting-testing.md b/exampleSite/content/issues/2023-04-16-formatting-testing.md new file mode 100644 index 0000000..7d23d8a --- /dev/null +++ b/exampleSite/content/issues/2023-04-16-formatting-testing.md @@ -0,0 +1,21 @@ +--- +title: Formatting testing +date: 2023-04-16T18:34:00Z +section: issue +informational: true +--- + +This page includes *some* markdown formatting, such as **bold**, *italics*, ***bold and italics***, and other things as follows: + +`This is just code, not much else. It shouldn't overflow outside the boundries, and it's not a code block either.` + +--- + +``` +This is a code block. It's long, and text will overflow. +aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa +bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb +qwertyuiopqwertyuiopqwertyuiopqwertyuiopqwertyuiopqwertyuiopqwertyuiopqwertyuiopqwertyuiopqwertyuiopqwertyuiopqwertyuiopqwertyuiopqwertyuiopqwertyuiopqwertyuiopqwertyuiopqwertyuiopqwertyuiopqwertyuiop +fastfastfastfastfastfastfastfastfastfastfastfastfastfastfastfastfastfastfastfastfastfastfastfastfastfastfastfastfastfastfastfastfastfastfastfastfastfastfastfastfastfastfastfastfastfastfastfastfastfast +v a r i b l e s p a c i n g fillerfillerfillerfillerfillerfillerfillerfillerfillerfillerfill +``` -- cgit v1.2.3-70-g09d2 From 91013f06b2b60b32f24129c58e2dba42ccc140ee Mon Sep 17 00:00:00 2001 From: Mantas VilĨinskas Date: Sat, 22 Apr 2023 14:16:46 +0300 Subject: specify class --- layouts/partials/meta.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/layouts/partials/meta.html b/layouts/partials/meta.html index 577f4a0..bb28846 100644 --- a/layouts/partials/meta.html +++ b/layouts/partials/meta.html @@ -107,7 +107,7 @@ padding: 16px; } - .contain pre { + .markdown pre { overflow-x: scroll; } -- cgit v1.2.3-70-g09d2