alert_extension.unit 3.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163
  1. >>> type note
  2. > [!NoTe]
  3. > Test note alert.
  4. <<<
  5. <div class="markdown-alert markdown-alert-note">
  6. <p class="markdown-alert-title">Note</p>
  7. <p>Test note alert.</p>
  8. </div>
  9. >>> type tip
  10. > [!TiP]
  11. > Test tip alert.
  12. <<<
  13. <div class="markdown-alert markdown-alert-tip">
  14. <p class="markdown-alert-title">Tip</p>
  15. <p>Test tip alert.</p>
  16. </div>
  17. >>> type important
  18. > [!ImpoRtanT]
  19. > Test important alert.
  20. <<<
  21. <div class="markdown-alert markdown-alert-important">
  22. <p class="markdown-alert-title">Important</p>
  23. <p>Test important alert.</p>
  24. </div>
  25. >>> type warning
  26. > [!WarNinG]
  27. > Test warning alert.
  28. <<<
  29. <div class="markdown-alert markdown-alert-warning">
  30. <p class="markdown-alert-title">Warning</p>
  31. <p>Test warning alert.</p>
  32. </div>
  33. >>> type caution
  34. > [!CauTioN]
  35. > Test caution alert.
  36. <<<
  37. <div class="markdown-alert markdown-alert-caution">
  38. <p class="markdown-alert-title">Caution</p>
  39. <p>Test caution alert.</p>
  40. </div>
  41. >>> invalid type
  42. > [!foo]
  43. > Test foo alert.
  44. <<<
  45. <blockquote>
  46. <p>[!foo]
  47. Test foo alert.</p>
  48. </blockquote>
  49. >>> contents can both contain/not contain starting quote
  50. > [!NOTE]
  51. Test note alert.
  52. >Test note alert x2.
  53. <<<
  54. <div class="markdown-alert markdown-alert-note">
  55. <p class="markdown-alert-title">Note</p>
  56. <p>Test note alert.
  57. Test note alert x2.</p>
  58. </div>
  59. >>> spaces everywhere
  60. > [!NOTE]
  61. > Test note alert.
  62. > Test note alert x2.
  63. <<<
  64. <div class="markdown-alert markdown-alert-note">
  65. <p class="markdown-alert-title">Note</p>
  66. <p>Test note alert.
  67. Test note alert x2.</p>
  68. </div>
  69. >>> title has 3 more spaces then fallback to blockquote
  70. > [!NOTE]
  71. > Test blockquote.
  72. <<<
  73. <blockquote>
  74. <p>[!NOTE]
  75. Test blockquote.</p>
  76. </blockquote>
  77. >>> nested blockquote
  78. > [!NOTE]
  79. >> Test nested blockquote.
  80. <<<
  81. <div class="markdown-alert markdown-alert-note">
  82. <p class="markdown-alert-title">Note</p>
  83. <blockquote>
  84. <p>Test nested blockquote.</p>
  85. </blockquote>
  86. </div>
  87. >>> escape brackets
  88. > \[!note\]
  89. > Test escape brackets.
  90. <<<
  91. <div class="markdown-alert markdown-alert-note">
  92. <p class="markdown-alert-title">Note</p>
  93. <p>Test escape brackets.</p>
  94. </div>
  95. >>> terminates properly
  96. > [!note]
  97. > A sample note.
  98. Additional markdown text.
  99. <<<
  100. <div class="markdown-alert markdown-alert-note">
  101. <p class="markdown-alert-title">Note</p>
  102. <p>A sample note.</p>
  103. </div>
  104. <p>Additional markdown text.</p>
  105. >>> supports multiple quoted lines
  106. > [!note]
  107. > A sample note
  108. > with two lines.
  109. Additional markdown text.
  110. <<<
  111. <div class="markdown-alert markdown-alert-note">
  112. <p class="markdown-alert-title">Note</p>
  113. <p>A sample note
  114. with two lines.</p>
  115. </div>
  116. <p>Additional markdown text.</p>
  117. >>> supports multiple lines
  118. > [!note]
  119. > A sample note
  120. with two lines.
  121. Additional markdown text.
  122. <<<
  123. <div class="markdown-alert markdown-alert-note">
  124. <p class="markdown-alert-title">Note</p>
  125. <p>A sample note
  126. with two lines.</p>
  127. </div>
  128. <p>Additional markdown text.</p>
  129. >>> supports continuation lines
  130. > [!note]
  131. > A sample note
  132. with two lines.
  133. Additional markdown text.
  134. <<<
  135. <div class="markdown-alert markdown-alert-note">
  136. <p class="markdown-alert-title">Note</p>
  137. <p>A sample note
  138. with two lines.</p>
  139. </div>
  140. <p>Additional markdown text.</p>
  141. >>> crash repro #584.1
  142. > [!Warning]
  143. >
  144. > Some extensions won't work on dynamic types.
  145. <<<
  146. <div class="markdown-alert markdown-alert-warning">
  147. <p class="markdown-alert-title">Warning</p>
  148. <p>Some extensions won't work on dynamic types.</p>
  149. </div>
  150. >>> crash repro #584.2
  151. > [!NOTE]
  152. >
  153. > if you receive the following error:
  154. <<<
  155. <div class="markdown-alert markdown-alert-note">
  156. <p class="markdown-alert-title">Note</p>
  157. <p>if you receive the following error:</p>
  158. </div>