[education/rkward/cheatsheet] rkward/pages: markdown completed

Stefan Rödiger null at kde.org
Fri Jun 17 16:03:14 BST 2022


Git commit d85961050a8043b972b90635fcc5dcba3316a2bf by Stefan Rödiger.
Committed on 17/06/2022 at 15:02.
Pushed by srodiger into branch 'cheatsheet'.

markdown completed

M  +1    -0    rkward/pages/rkward_LaTeX_cheatsheet.rkh
M  +161  -128  rkward/pages/rkward_markdown_cheatsheet.rkh
M  +1    -0    rkward/pages/rkward_welcome.rkh

https://invent.kde.org/education/rkward/commit/d85961050a8043b972b90635fcc5dcba3316a2bf

diff --git a/rkward/pages/rkward_LaTeX_cheatsheet.rkh b/rkward/pages/rkward_LaTeX_cheatsheet.rkh
index e8dd4ea2..094fc9f9 100644
--- a/rkward/pages/rkward_LaTeX_cheatsheet.rkh
+++ b/rkward/pages/rkward_LaTeX_cheatsheet.rkh
@@ -10,6 +10,7 @@
 	</section>
 
 	<section id="Distributions" title="Statistical Distributions">
+        Ordered List
 
 	</section>
 
diff --git a/rkward/pages/rkward_markdown_cheatsheet.rkh b/rkward/pages/rkward_markdown_cheatsheet.rkh
index 41f8550d..9ea701ac 100644
--- a/rkward/pages/rkward_markdown_cheatsheet.rkh
+++ b/rkward/pages/rkward_markdown_cheatsheet.rkh
@@ -6,136 +6,169 @@
 	</summary>
 
 	<section id="BasicMarkdownSyntax" title="Basic Syntax">
-            <table>
-        <thead>
-          <tr>
-            <th>Element</th>
-            <th>Markdown Syntax</th>
-            <th>Alternative  Expression</th>
-          </tr>
-        </thead>
-        <tbody>
-          <tr>
-            <td>Heading</td>
-            <td># H1<br>## H2<br>### H3</td>
-            <td></td>
-          </tr>
-          <tr>
-            <td>Bold</td>
-            <td>**bold text**</td>
-            <td>__bold text__</td>
-          </tr>
-          <tr>
-            <td>Italic</td>
-            <td>*italicized text*</td>
-            <td>_italicized text_</td>
-          </tr>
-          <tr>
-            <td>Blockquote</td>
-            <td>> blockquote</td>
-            <td></td>
-          </tr>
-          <tr>
-            <td>Ordered List</td>
-            <td>1. First item<br>2. Second item<br>3. Third item<br>       </td>
-            <td></td>
-          </tr>
-          <tr>
-            <td>Unordered List</td>
-            <td> - First item<br> - Second item<br> - Third item<br>                </td>
-            <td></td>
-          </tr>
-          <tr>
-            <td>Code</td>
-            <td>`code`</td>
-            <td></td>
-          </tr>
-          <tr>
-            <td>Horizontal Rule</td>
-            <td>---</td>
-            <td></td>
-          </tr>
-          <tr>
-            <td>Link</td>
-            <td>[title](https://www.example.com)</td>
-            <td></td>
-          </tr>
-          <tr>
-            <td>Image</td>
-            <td>![alt text](image.jpg)</td>
-            <td></td>
-          </tr>
-        </tbody>
-        </table>
+      <table>
+                  <thead>
+                    <tr>
+                      <th>Element</th>
+                      <th>Markdown Syntax</th>
+                      <th>Alternative  Expression</th>
+                    </tr>
+                  </thead>
+            <tbody>
+              <tr>
+                <td>Heading</td>
+                <td>
+                    # H1 <br />
+                    ## H2 <br />
+                    ### H3 <br />
+                    ... <br />
+                </td>
+                <td>Alt-H1<br />
+                    ======<br /><br />
+                    Alt-H2<br />
+                    ------<br />
+                </td>
+              </tr>
+              <tr>
+                <td>Ordered List</td>
+                <td>1. First item<br />2. Second item<br />3. Third item<br /></td>
+                <td></td>
+              </tr>
+              <tr>
+                <td>Unordered List</td>
+                <td> - First item<br /> - Second item<br /> - Third item<br /></td>
+                <td></td>
+              </tr>
+              <tr>
+                  <td>Task list</td>
+                    <td>
+                        - [x] Write the press release <br />
+                        - [ ] Update the website <br />
+                        - [ ] Contact the media
+                    </td>
+                  <td></td>
+              </tr>
+              <tr>
+                <td>Bold</td>
+                <td>**bold text**</td>
+                <td>__bold text__</td>
+              </tr>
+              <tr>
+                <td>Italic</td>
+                <td>*italicized text*</td>
+                <td>_italicized text_</td>
+              </tr>
+              <tr>
+                <td>Combined emphasis</td>
+                <td>**asterisks and _underscores_**</td>
+                <td></td>
+              </tr>
+              <tr>
+                <td>Blockquote</td>
+                <td>> blockquote</td>
+                <td></td>
+              </tr>
+              <tr>
+                <td>Code</td>
+                <td>`code`</td>
+                <td></td>
+              </tr>
+              <tr>
+                <td>Horizontal Rule</td>
+                <td>---</td>
+                <td></td>
+              </tr>
+              <tr>
+                <td>Inline-style link</td>
+                <td>[RKWard](https://rkward.kde.org/)</td>
+                <td></td>
+              </tr>
+              <tr>
+                <td>Inline-style link with title</td>
+                <td>[RKWard](https://rkward.kde.org/ "RKWard")</td>
+                <td></td>
+              </tr>
+              <tr>
+                <td>Image</td>
+                <td>![alt text](image.jpg)</td>
+                <td></td>
+              </tr>
+            </tbody>
+      </table>
+
+      Reference-style links allows to refer to links by names, which were define elsewhere in the document.
+
+      [RKWard][1] used [KDE][2] technology.  <br /><br />
+                    [1]: https://rkward.kde.org/ "RKWard"  <br />
+                    [2]: https://kde.org/  "KDE"  <br />
 	</section>
 
-	<section id="Distributions" title="Statistical Distributions">
-	<table>
-<thead>
-  <tr>
-    <th>Distribution</th>
-    <th>LaTeX</th>
-    <th>Result</th>
-  </tr>
-</thead>
-<tbody>
-  <tr>
-    <td>Bernoulli  </td>
-    <td>\Bernoulli  </td>
-    <td>Bern </td>
-  </tr>
-  <tr>
-    <td>Binomial  </td>
-    <td>\Binomial  </td>
-    <td>Bin </td>
-  </tr>
-  <tr>
-    <td>Geometric  </td>
-    <td>\Geometric  </td>
-    <td>Geom </td>
-  </tr>
-  <tr>
-    <td>Hypergeometric  </td>
-    <td>\Hypergeometric </td>
-    <td> H </td>
-  </tr>
-  <tr>
-    <td>Negative Binomial  </td>
-    <td>\NegBin  </td>
-    <td>N egBin </td>
-  </tr>
-  <tr>
-    <td>Poisson  </td>
-    <td>\Poisson  </td>
-    <td>P </td>
-  </tr>
-  <tr>
-    <td>Uniform </td>
-    <td>\Uniform </td>
-    <td>U </td>
-  </tr>
-  <tr>
-    <td>Exponential </td>
-    <td>\Exponential </td>
-    <td>Exp </td>
-  </tr>
-  <tr>
-    <td>Gamma </td>
-    <td>\GAMMA </td>
-    <td>GAM </td>
-  </tr>
-  <tr>
-    <td>Chi-square </td>
-    <td>\chi∧2 </td>
-    <td>χ2 </td>
-  </tr>
-  <tr>
-    <td>Normal </td>
-    <td>\Normal </td>
-    <td>N </td>
-  </tr>
-</tbody>
-</table>
+	<section id="ExtendedMarkdown Syntax" title="Extended Syntax">
+      <table>
+      <thead>
+        <tr>
+          <th>Element</th>
+          <th>Markdown Syntax</th>
+          <th>Note</th>
+        </tr>
+      </thead>
+      <tbody>
+        <tr>
+          <td>Table</td>
+          <td>
+          | Syntax      | Description | <br />
+          | ----------- | ----------- | <br />
+          | Header      | Title       | <br />
+          | Paragraph   | Text        | <br /></td>
+          <td>Caption <br />there is still no widely accepted syntax for table caption in Markdown. Pandoc uses the following syntax: <br />:Table caption <br />[Table caption] <br /> <br /></td>
+        </tr>
+        <tr>
+          <td>Fenced  code block <br /></td>
+          <td>``` <br />{ <br />"firstName": "John", <br />  "lastName": "Smith", <br />  "age": 25 <br /> } <br />```       </td>
+          <td></td>
+        </tr>
+        <tr>
+          <td>Footnote</td>
+          <td>Here's a sentence with a footnote. [^1] <br />[^1]: This is the footnote.       </td>
+          <td>A footnote can also have multiple lines. Every new line should be prefixed with 2 spaces.</td>
+        </tr>
+        <tr>
+          <td>Heading ID</td>
+          <td>### My Great Heading {#custom-id}</td>
+          <td></td>
+        </tr>
+        <tr>
+          <td>Definition list</td>
+          <td>term <br />: definition       </td>
+          <td></td>
+        </tr>
+        <tr>
+          <td>Strikethrough</td>
+          <td>~~The world is flat.~~</td>
+          <td></td>
+        </tr>
+        <tr>
+          <td>Emoji</td>
+          <td>That is so funny! :joy:       </td>
+          <td>https://emojipedia.org/</td>
+        </tr>
+        <tr>
+          <td>Highlight</td>
+          <td>I need to highlight these ==very important words==.       </td>
+          <td></td>
+        </tr>
+        <tr>
+          <td>Subscript</td>
+          <td>H~2~O       </td>
+          <td></td>
+        </tr>
+        <tr>
+          <td>Superscript</td>
+          <td>X^2^</td>
+          <td></td>
+        </tr>
+      </tbody>
+      </table>
 	</section>
 
 	<related>
diff --git a/rkward/pages/rkward_welcome.rkh b/rkward/pages/rkward_welcome.rkh
index 2c38a88f..7d512efd 100644
--- a/rkward/pages/rkward_welcome.rkh
+++ b/rkward/pages/rkward_welcome.rkh
@@ -33,6 +33,7 @@
 	<li>External links: <link href="https://rkward.kde.org/">project homepage</link></li>
 	<li><link href="rkward://page/rkward_Rmarkdown_cheatsheet">Rmarkdown cheat sheet</link></li>
 	<li><link href="rkward://page/rkward_VI_cheatsheet">VI cheat sheet</link></li>
+	<li><link href="rkward://page/rkward_markdown_cheatsheet">markdown cheat sheet</link></li>
 	<li><link href="rkward://page/rkward_LaTeX_cheatsheet">LaTeX cheat sheet</link></li>
 		</ul>
 	</section>


More information about the rkward-tracker mailing list