color config for code blocks
[smdp.git] / sample.md
index 4e304c6..88bcd34 100644 (file)
--- a/sample.md
+++ b/sample.md
@@ -102,7 +102,7 @@ becomes
 
 -> # Supported markdown formatting <-
 
-You can also use [pandoc](http://pandoc.org/demo/example9/pandocs-markdown.html)'s fenced code block
+You can also use [pandoc](https://pandoc.org/MANUAL.html#fenced-code-blocks)'s fenced code block
 extension. Use at least three ~ chars to open and
 at least as many or more ~ for closing.
 
@@ -115,8 +115,8 @@ at least as many or more ~ for closing.
 becomes
 
 ~~~ {.numberLines}
-int main(int argc, char \*argv[]) {
-    printf("%s\\n", "Hello world!");
+int main(int argc, char *argv[]) {
+    printf("%s\n", "Hello world!");
 }
 ~~~~~~~~~~~~~~~~~~
 
@@ -127,6 +127,30 @@ will be ignored
 
 -> # Supported markdown formatting <-
 
+You can also use [github](https://guides.github.com/features/mastering-markdown/#GitHub-flavored-markdown) flavored markdown's
+code block. Use at least three backticks to open
+and at least as many or more backticks for closing.
+
+\```
+\int main(int argc, char \*argv[]) {
+\    printf("%s\\n", "Hello world!");
+\}
+\```
+
+becomes
+
+```
+int main(int argc, char *argv[]) {
+    printf("%s\n", "Hello world!");
+}
+```
+
+Language hint will be ignored
+
+-------------------------------------------------
+
+-> # Supported markdown formatting <-
+
 Quotes are auto-detected by preceding *>*.
 
 Multiple *>* are interpreted as nested quotes.