X-Git-Url: https://git.danieliu.xyz/?a=blobdiff_plain;f=sample.md;h=502bb2b1b6bb8784f609da88908d30dac90611b6;hb=38d6a34dd282abfa10f7d083a3f8161f0649acea;hp=44bd45042492a33210a685674344eab55fa0c93e;hpb=37640d707f7f7a1fd864d8f22baa8ada756c7984;p=smdp.git diff --git a/sample.md b/sample.md index 44bd450..502bb2b 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 <- ========= @@ -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.