diff --git a/README.md b/README.md index cc7177a5..7232579a 100644 --- a/README.md +++ b/README.md @@ -15,6 +15,8 @@ Quarkdown is a Markdown parser and renderer that extends the capabilities of Markdown, bringing support for **functions** and many other syntax extensions. +
+ > This is a function call: > ``` > .somefunction {arg1} {arg2} @@ -26,14 +28,35 @@ Quarkdown is a Markdown parser and renderer that extends the capabilities of Mar **Possibilities are unlimited** thanks to an ever-expanding [standard library](stdlib/src/main/kotlin/eu/iamgio/quarkdown/stdlib), which offers layout builders, I/O, math, conditional statements and loops. +
+ +> ```markdown +> .row alignment:{spacebetween} gap:{1cm} +> .repeat {8} +> n: +> .if {.iseven {.n}} +> **.n** is even +> ``` +> Result: +>
+>

2 is even

+>

4 is even

+>

6 is even

+>

8 is even

+>
+ +
+ **Not enough?** You can still define your own functions and variables — all within Markdown. +
+ > ``` > .function {greet} -> to from: -> **Hello, .to** from .from! -> -> .greet {world} from:{iamgio} +> to from: +> **Hello, .to** from .from! +> +> .greet {world} from:{iamgio} > ``` > Result: **Hello, world** from iamgio!