motyl

Opinionated blog-aware static site generator written in Ruby
Log | Files | Refs | README | LICENSE

commit 12faa944f9b5e858de3df86a0703e5e926d6ca16
parent 6eabb8152516ee91e2fd6ca382149eb891f66395
Author: Frederic Cambus <fred@statdns.com>
Date:   Thu,  9 Feb 2017 13:05:23 +0100

Update fenced code blocks example

Diffstat:
Mexamples/posts/hello-world.md | 20++++++++++++++------
1 file changed, 14 insertions(+), 6 deletions(-)

diff --git a/examples/posts/hello-world.md b/examples/posts/hello-world.md @@ -1,15 +1,23 @@ Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum. -Motyl supports fenced code blocks: +Motyl supports fenced code blocks. + +Here is an example showing a shell script: ``` bash -\`\`\`i bash #!/bin/sh echo "Hello World!" -\`\`\` ``` -``` bash -#!/bin/sh -echo "Hello World!" +Another example showing C code: + +``` clike +#include <stdio.h> + +int main() { + printf("Hello World!\n"); + + return 0; +} ``` +