X-Git-Url: https://git.danieliu.xyz/?a=blobdiff_plain;f=sample.md;h=42b6930b2f82708ac657dabe4827c81b4efb0c9d;hb=69352838d7b0be27074840a0d2d1e2cf294dcec3;hp=3e3d62ebbc09a11ab295ba4c7ad432851fb06ac7;hpb=9adad15f5201cd5e78dcde688ceb6d7b56e0fffb;p=smdp.git diff --git a/sample.md b/sample.md index 3e3d62e..42b6930 100644 --- a/sample.md +++ b/sample.md @@ -102,6 +102,30 @@ becomes -> # Supported markdown formatting <- +You can also use [pandoc](http://pandoc.org/demo/example9/pandocs-markdown.html)'s fenced code block extension. +Use at least three ~ chars to open and at least as many or +more ~ for closing. + +\~~~ {.numberLines} +\int main(int argc, char \*argv[]) { +\ printf("%s\\n", "Hello world!"); +\} +\~~~~~~~~~~~~~~~~~~ + +becomes + +~~~ {.numberLines} +int main(int argc, char \*argv[]) { + printf("%s\\n", "Hello world!"); +} +~~~~~~~~~~~~~~~~~~ + +Pandoc attributes (like ".numberlines" etc.) will be ignored + +------------------------------------------------- + +-> # Supported markdown formatting <- + Quotes are auto-detected by preceding *>*. Multiple *>* are interpreted as nested quotes.