[education/rkward] rkward: smarter Chunks

Stefan Rödiger null at kde.org
Sat Jul 9 09:49:24 BST 2022


Git commit 0378b6a0df11e7634bd76559d966ad37f8155708 by Stefan Rödiger.
Committed on 09/07/2022 at 08:47.
Pushed by srodiger into branch 'master'.

smarter Chunks

M  +2    -2    rkward/RKWardRMd.xml

https://invent.kde.org/education/rkward/commit/0378b6a0df11e7634bd76559d966ad37f8155708

diff --git a/rkward/RKWardRMd.xml b/rkward/RKWardRMd.xml
index d92bea12..e8987b4f 100644
--- a/rkward/RKWardRMd.xml
+++ b/rkward/RKWardRMd.xml
@@ -133,7 +133,7 @@ $$e^${braces("i\\pi")} + 1$$
  </item>
   <item>
   <match>Code (simple chunk)</match>
-  <fillin>${rangeCommand("\n```"+ braces("r") +" %%1```\n", "\nx <- 1\n\n")}</fillin>
+  <fillin>${rangeCommand("\n```"+ braces("r") +"\n%%1\n```\n", "x <- 1 # Mark the code to be put in a Chunk\n")}</fillin>
  </item>
  <item>
   <match>Quote</match>
@@ -181,7 +181,7 @@ A & B \\
  </item>
  <item>
   <match>Code (chunk with defaults)</match>
-  <fillin>${rangeCommand("```"+ braces("r, chunk-label, echo = FALSE, eval = TRUE, fig.show = \"asis\", include = TRUE, message = FALSE, results = \"asis\", warning = FALSE") +" %%1```\n", "\nx <- 1\n\n")}</fillin>
+  <fillin>${rangeCommand("```"+ braces("r, chunk-label, echo = FALSE, eval = TRUE, fig.show = \"asis\", include = TRUE, message = FALSE, results = \"asis\", warning = FALSE") +"\n%%1 \n```\n", "x <- 1 # Mark the code to be put in a Chunkn\n")}</fillin>
  </item>
  <item>
   <match>Table (Markdown with caption)</match>


More information about the rkward-tracker mailing list