X-Git-Url: https://git.danieliu.xyz/?p=smdp.git;a=blobdiff_plain;f=sample.md;h=88bcd345bb57fe9bdc89231f8a9e86b3d098fa98;hp=44bd45042492a33210a685674344eab55fa0c93e;hb=HEAD;hpb=37640d707f7f7a1fd864d8f22baa8ada756c7984 diff --git a/sample.md b/sample.md index 44bd450..88bcd34 100644 --- a/sample.md +++ b/sample.md @@ -1,6 +1,6 @@ %title: mdp - Sample Presentation %author: visit1985 -%date: 2014-09-22 +%date: 2016-02-07 -> mdp <- ========= @@ -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.