block.pdc 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119
  1. # Block spans
  2. this is a paragraph.
  3. this is a long paragraph with *italics* and **bold** items.
  4. this is a long paragraph where *an italicized section ends with a space *.
  5. this is a *long paragraph that spans
  6. two* lines.
  7. this is a paragraph with *a span that is very very very very very very very very
  8. very very very very very very very very very very very very very very very very
  9. very very very very very very very* long.
  10. this is a paragraph where _italics_ and __bold__ are set with underscores.
  11. ***this*** is a paragraph with ***strongly emphasized*** words, such as this
  12. ___one___.
  13. # italics *in* titles
  14. yes, we can.
  15. # bold **in** titles
  16. inline `code` in this paragraph. this is a ``test for this`` stuff.
  17. superscripts ^are\ kinda^ cool (2^12^). subscripts can ~also~ be ~kinda\ lame~
  18. (like drinking H~2~O). there's also sections with ~~striked out~~ text.
  19. this ~= could be a problem if we allowed unscaped spaces.
  20. a new line can be outputted for lines with a couple
  21. of spaces.
  22. # mix and match
  23. oh no! mix and match *is **hard** stuff*, real hard.
  24. mixing is **quite *the* problem**.
  25. but... we ***kinda tackled it*** ;)
  26. We once had problems with ***quite* the problem**, but not anymore.
  27. # blockquotes
  28. > this is a test block
  29. > this is another *test*. block
  30. a block
  31. > less block
  32. aaa block
  33. no block.
  34. # code blocks
  35. def func(a):
  36. return 1
  37. no code
  38. ~~~python
  39. def func(a):
  40. return 1
  41. ~~~
  42. ~~~ {.python}
  43. print("hi")
  44. ~~~
  45. test
  46. ~~~haskell
  47. test
  48. ~~~
  49. ```vim
  50. :exe "cmd args"
  51. ```
  52. > ``` c
  53. > void (*signal(int sig, void (*disp)(int)))(int);
  54. > ```
  55. >
  56. > If `signal()` is used, `disp` is the address of a signal handler, and `sig`
  57. > is not `SIGILL`, `SIGTRAP`, or `SIGPWR`, the system first sets the signal's
  58. > disposition to `SIG_DFL` before executing the signal handler.
  59. # definitions
  60. hello
  61. : this is a definition.
  62. `hello`
  63. : this is a definition
  64. # lists
  65. * this
  66. * this
  67. * and this
  68. + and this
  69. 1) a
  70. 2) b
  71. # smart punctuation
  72. ellipses: ....
  73. quote "signs". This only works at the beggining and end of words.
  74. quote "signs."
  75. issue #31:
  76. "Foo"
  77. *"Foo"*
  78. **"Foo"**