From c17f7c68c8885c04a71377759187466540b21a73 Mon Sep 17 00:00:00 2001 From: Jonas Loos <33965649+JonasLoos@users.noreply.github.com> Date: Mon, 11 Jul 2022 16:37:40 +0200 Subject: [PATCH 1/2] fix code in example code blocks --- src/index.ejs | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/src/index.ejs b/src/index.ejs index 2a5ff78..9c4e3ab 100644 --- a/src/index.ejs +++ b/src/index.ejs @@ -203,16 +203,19 @@ var x = 25; - function(x){ - return x * x; + function square(x){ + return x * x; }

We also support some highlighting.

# Python 3: Fibonacci series up to n def fib(n): - a, b = 0, 1 - while a < n: print(a, end=' ' ) a, b=b, a+b + a, b = 0, 1 + while a < n: + print(a, end=' ' ) + a, b = b, a+b +

Tables

We have simple tables that try to stay readable at most screen sizes: From 5d1ef2dab82f371f0a4d1ee1fd031f689c9dbcfe Mon Sep 17 00:00:00 2001 From: Jonas Loos <33965649+JonasLoos@users.noreply.github.com> Date: Mon, 11 Jul 2022 18:47:27 +0200 Subject: [PATCH 2/2] fix whitespace in example code blocks --- src/index.ejs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/index.ejs b/src/index.ejs index 9c4e3ab..a085341 100644 --- a/src/index.ejs +++ b/src/index.ejs @@ -203,7 +203,7 @@ var x = 25; - function square(x){ + function square(x) { return x * x; } @@ -213,9 +213,9 @@ def fib(n): a, b = 0, 1 while a < n: - print(a, end=' ' ) + print(a, end=' ') a, b = b, a+b - +

Tables

We have simple tables that try to stay readable at most screen sizes: @@ -339,4 +339,4 @@ - \ No newline at end of file +