X-Git-Url: https://git.danieliu.xyz/?p=smdp.git;a=blobdiff_plain;f=sample.md;h=88bcd345bb57fe9bdc89231f8a9e86b3d098fa98;hp=4e304c63a74f12d70657b88c17dc36854e3178ff;hb=HEAD;hpb=d697dc5138fe93ed9d0316ddf41de6c12b05683d diff --git a/sample.md b/sample.md index 4e304c6..88bcd34 100644 --- 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.