CAT-SOOP is a flexible, programmable learning management system based on the Python programming language. https://catsoop.mit.edu
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

128 lines
3.3 KiB

  1. <python>
  2. # This file is part of CAT-SOOP
  3. # Copyright (c) 2011-2020 by The CAT-SOOP Developers <catsoop-dev@mit.edu>
  4. #
  5. # This program is free software: you can redistribute it and/or modify it under
  6. # the terms of the GNU Affero General Public License as published by the Free
  7. # Software Foundation, either version 3 of the License, or (at your option) any
  8. # later version.
  9. #
  10. # This program is distributed in the hope that it will be useful, but WITHOUT
  11. # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
  12. # FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more
  13. # details.
  14. #
  15. # You should have received a copy of the GNU Affero General Public License
  16. # along with this program. If not, see <http://www.gnu.org/licenses/>.
  17. cs_title = "CAT-SOOP Markdown Formatting Help"
  18. cs_content_header = "Markdown Formatting Help"
  19. </python>
  20. <center>
  21. <style>
  22. table, th, td {
  23. border: 1px solid black;
  24. border-collapse: collapse;
  25. padding:10px;
  26. }
  27. </style>
  28. <br/>
  29. <table style="">
  30. <tr>
  31. <th width=50%>Syntax</th>
  32. <th width=50%>Processed</th>
  33. </tr>
  34. <tr>
  35. <td><pre>Text between underscores is _emphasized_.</pre></td>
  36. <td><p>Text between underscores is <em>emphasized</em>.</p></td>
  37. </tr>
  38. <tr>
  39. <td><pre>Text between double asterisks is **bold**.</pre></td>
  40. <td><p>Text between double asterisks is <strong>bold</strong>.</p></td>
  41. </tr>
  42. <tr>
  43. <td><pre>Text between backticks is formatted as `code`.</pre></td>
  44. <td><p>Text between backticks is formatted as <code>code</code>.</p></td>
  45. </tr>
  46. <tr>
  47. <td><pre>For a larger block of code, surround the code with three backticks:
  48. ```
  49. def foo(x):
  50. print(x + 2)
  51. ```</pre></td>
  52. <td><p>For a larger block of code, surround the code with three backticks:
  53. <pre><code>def foo(x):
  54. print(x + 2)</code></pre></p></td>
  55. </tr>
  56. <tr>
  57. <td><pre>To enable syntax highlighting on a large code block, include the name of the programming language after the first set of three backticks:
  58. ```python
  59. def foo(x):
  60. print(x + 2)
  61. ```</pre></td>
  62. <td><p>To enable syntax highlighting on a large code block, include the name of the programming language after the first set of three backticks:
  63. <pre><code class='lang-python'>def foo(x):
  64. print(x + 2)</code></pre></p></td>
  65. </tr>
  66. <tr>
  67. <td><pre>Text between dollar signs is formatted as math (LaTeX): $x^2$</pre></td>
  68. <td><p>Text between dollar signs is formatted as math (LaTeX): <math>x^2</math></p></td>
  69. </tr>
  70. <tr>
  71. <td><pre>Text between double dollar signs is formatted as display math (LaTeX): $$\sum_{a=0}^\infty a^n$$</pre></td>
  72. <td><p>Text between double dollar signs is formatted as display math (LaTeX): <displaymath>\sum_{a=0}^\infty a^n</displaymath></p></td>
  73. </tr>
  74. <tr>
  75. <td><pre>Asterisks denote a
  76. * bulleted
  77. * list</pre></td>
  78. <td>Asterisks denote a
  79. <ul>
  80. <li>bulleted</li>
  81. <li>list</li>
  82. </ul></td>
  83. </tr>
  84. <tr>
  85. <td><pre>A number followed by a period denotes a
  86. 1. numbered
  87. 1. list</pre></td>
  88. <td>A number followed by a period denotes a
  89. <ol>
  90. <li>numbered</li>
  91. <li>list</li>
  92. </ol></td>
  93. </tr>
  94. <tr>
  95. <td><pre>[Link to CAT-SOOP](https://catsoop.org)</pre></td>
  96. <td><p><a href="https://catsoop.org">Link to CAT-SOOP</a></p></td>
  97. </tr>
  98. <tr>
  99. <td><pre>![Image](https://catsoop.org/_static/_base/images/logo.svg)</pre></td>
  100. <td><p><img alt="Image" src="https://catsoop.org/_static/_base/images/logo.svg" /></p></td>
  101. </tr>
  102. </table>
  103. </center>