[TikiWiki-commits] [Git][tikiwiki/tiki][master] [UPD] Editor help menu: update markdown help menu information with missing...

Benoit Grégoire (@benoitg) via TikiWiki-cvs <[email protected]>
Newsgroups gmane.comp.cms.tiki.cvs
Message-ID <6984e9c4be71b_3b1849304931b@gitlab-sidekiq-low-urgency-cpu-bound-v2-ffd95bcd5-pc2fw.mail>

Benoit Grégoire pushed to branch master at Tiki Wiki CMS Groupware / Tiki


Commits:
b167d4d3 by Boss Ibrahim Mussa Gregoire at 2026-02-05T18:55:14+00:00
[UPD] Editor help menu: update markdown help menu information with missing supported markdown syntax
---
* [UPD] Editor help: update markdown help information.

* [REM] Editor help: remove markdown wysiwyg help file.

See merge request tikiwiki/tiki!9511

- - - - -


3 changed files:

- lib/core/Services/Edit/Controller.php
- templates/tiki-edit_help_markdown.tpl
- − templates/tiki-edit_help_markdown_wysiwyg.tpl


Changes:

=====================================
lib/core/Services/Edit/Controller.php
=====================================
@@ -269,7 +269,7 @@ $(window).on("load", function(){
             ];
         }
 
-        if ($input->markdown->int()) {
+        if ($input->markdown_wysiwyg->int() || $input->markdown->int()) {
             $help_sections[] = [
                 'id' => 'wiki-help',
                 'title' => tr('Mardown Syntax Help'),
@@ -277,14 +277,6 @@ $(window).on("load", function(){
             ];
         }
 
-        if ($input->markdown_wysiwyg->int()) {
-            $help_sections[] = [
-                'id' => 'wiki-help',
-                'title' => tr('Mardown Syntax Help'),
-                'content' => $smarty->fetch('tiki-edit_help_markdown_wysiwyg.tpl'),
-            ];
-        }
-
         if ($input->plugins->int()) {
             $areaId = $input->areaId->word();
             $wikilib = TikiLib::lib('wiki');


=====================================
templates/tiki-edit_help_markdown.tpl
=====================================
@@ -1,83 +1,119 @@
 {if $prefs.feature_help eq 'y'}
     {remarksbox type="info" title="{tr}More information{/tr}"}
+    {if $prefs.feature_wysiwyg eq 'y' && $prefs.wysiwyg_optional eq 'y'}
+        <a href="{$prefs.helpurl}Markdown-WYSIWYG-Page-Editor" target="tikihelp" class="tikihelp alert-link" title="{tr}Wiki Page Editor:{/tr} {tr}More help on editing wiki pages{/tr}">
+            {tr}Markdown WYSIWYG Page Editor{/tr}
+        </a>
+    {else}
         <a href="{$prefs.helpurl}Wiki-Page-Editor" target="tikihelp" class="tikihelp alert-link" title="{tr}Wiki Page Editor:{/tr} {tr}More help on editing wiki pages{/tr}">
             {tr}Wiki Page Editor{/tr}
         </a>
-        {tr}and{/tr}
+    {/if}
+    {tr}and{/tr}
         <a href="{$prefs.helpurl}Markdown-syntax" target="tikihelp" class="tikihelp alert-link" title="{tr}Wiki Syntax:{/tr} {tr}The syntax system used for creating pages in Tiki{/tr}">
             {tr}Markdown Syntax{/tr}
         </a>
+        <a href="{$prefs.helpurl}Converting-from-Tiki-syntax-to-Markdown" target="tikihelp" class="tikihelp alert-link" title="{tr}Wiki Syntax:{/tr} {tr}Converting from Tiki-syntax to Markdown{/tr}">
+            {tr}Markdown Syntax{/tr}
+        </a>
     {/remarksbox}
 {/if}
 <table class="table table-condensed table-hover">
     <tr>
         <td>
-            {icon name='bold'} 
-            <strong>{tr}Bold text{/tr}</strong> &nbsp;&nbsp;&nbsp; 
+            {icon name='bold'}
+            <strong>{tr}Bold text{/tr}</strong><br>
             <code>**{tr}text{/tr}**</code> {tr}or{/tr} <code>__{tr}text{/tr}__</code>
         </td>
-        </tr>
-        <tr>
+    </tr>
+    <tr>
         <td>
-            {icon name='italic'} 
-            <strong>{tr}Italic text{/tr}</strong> &nbsp;&nbsp;&nbsp; 
+            {icon name='italic'}
+            <strong>{tr}Italic text{/tr}</strong><br>
             <code>*{tr}text{/tr}*</code> {tr}or{/tr} <code>_{tr}text{/tr}_</code>
         </td>
-        </tr>
-        <tr>
+    </tr>
+    <tr>
         <td>
-            {icon name='strikethrough'} 
-            <strong>{tr}Deleted text{/tr}</strong> &nbsp;&nbsp;&nbsp; 
+            {icon name='strikethrough'}
+            <strong>{tr}Deleted text{/tr}</strong><br>
             <code>~~{tr}text{/tr}~~</code>
         </td>
     </tr>
     <tr>
         <td>
-            {icon name='h1'} 
-            <strong>{tr}Headings{/tr}</strong> <br/>
+            {icon name='h1'}
+            <strong>{tr}Headings{/tr}</strong><br>
             <code># Heading 1</code>, <code>## Heading 2</code>, <code>### Heading 3</code>
         </td>
-        </tr>
-        <tr>
+    </tr>
+    <tr>
         <td>
-            {icon name='horizontal-rule'} 
-            <strong>{tr}Horizontal rule{/tr}</strong> &nbsp;&nbsp;&nbsp; 
+            {icon name='horizontal-rule'}
+            <strong>{tr}Horizontal rule{/tr}</strong><br>
             <code>---</code> {tr}or{/tr} <code>***</code>
         </td>
-        </tr>
-        <tr>
+    </tr>
+    <tr>
         <td>
-            {icon name='link-external'} 
-            <strong>{tr}External links{/tr}</strong> &nbsp;&nbsp;&nbsp; 
+            {icon name='link-external'}
+            <strong>{tr}External links{/tr}</strong> <br>
             <code>[text](url)</code>
         </td>
     </tr>
     <tr>
         <td>
-            {icon name='list'} {icon name='list-numbered'} 
-            <strong>{tr}Lists{/tr}</strong>
-            <br>
-            <code>*</code> {tr}or{/tr} <code>-</code>  {tr}for bullet lists,{/tr}<br>
-            <code>1.</code>, <code>2.</code>, <code>3.</code> etc.  {tr}for numbered lists,{/tr}
+            {icon name='image'}
+            <strong>{tr}Image{/tr}</strong><br>
+            <code>![alt ext](image.jpg)</code>
         </td>
     </tr>
     <tr>
         <td>
-            {icon name='table'} 
-            <strong>{tr}Tables{/tr}</strong>
-            <br/>
+            {icon name='list'} {icon name='list-numbered'}
+            <strong>{tr}Lists{/tr}</strong><br>
+            {tr}for bullet lists{/tr}<br>
+            <code>*</code> {tr}or{/tr} <code>-</code> <br>
+            {tr}for numbered lists{/tr}<br>
+            <code>1. First<br> 2. Second<br>3. Third</code><br>
+            {tr}Lists task{/tr}<br>
+            <code>- [x] Write the press release <br>- [ ] Update the website<br>- [ ] Contact the media</code>
+        </td>
+    </tr>
+    <tr>
+        <td>
+            {icon name='list'}
+            <strong>{tr}Blockquotes{/tr}</strong><br>
+            <code>> This is a blockquote.<br>> It can span multiple lines.</code
+        </td>
+    </tr>
+    <tr>
+        <td>
+            {icon name='table'}
+            <strong>{tr}Tables{/tr}</strong><br/>
             <code>
-            | {tr}row{/tr}1-{tr}col{/tr}1 | {tr}row{/tr}1-{tr}col{/tr}2 | {tr}row{/tr}1-{tr}col{/tr}3 |<br>
-            | --------- | --------- | --------- |<br>
-            | {tr}row{/tr}2-{tr}col{/tr}1 | {tr}row{/tr}2-{tr}col{/tr}2 | {tr}row{/tr}2-{tr}col{/tr}3 |
+                | {tr}row{/tr}1-{tr}col{/tr}1 | {tr}row{/tr}1-{tr}col{/tr}2 | {tr}row{/tr}1-{tr}col{/tr}3 |<br>
+                | --------- | --------- | --------- |<br>
+                | {tr}row{/tr}2-{tr}col{/tr}1 | {tr}row{/tr}2-{tr}col{/tr}2 | {tr}row{/tr}2-{tr}col{/tr}3 |
             </code>
         </td>
     </tr>
     <tr>
         <td>
-            {icon name='code'} 
-            <strong>{tr}Monospace font{/tr}</strong> &nbsp;&nbsp;&nbsp; 
-            <code>`{tr}Code sample{/tr}`</code>
+            {icon name='superscript'}
+            <strong>{tr}Footnote{/tr}</strong><br>
+            <code>Here's a sentence with a footnote. [^1]</code><br>
+            <code>[^1]: This is the footnote.</code>
+        </td>
+    </tr>
+    <tr>
+        <td>
+            {icon name='code'}
+            <strong>{tr}Code{/tr}</strong><br>
+            {tr}Simple Code{/tr}<br>
+            <code>`Code sample`</code><br>
+            {tr}For code Block{/tr}</> <br>
+            <code>```php<br>echo "Hello, World!";<br>```</code>
         </td>
     </tr>
 </table>


=====================================
templates/tiki-edit_help_markdown_wysiwyg.tpl deleted
=====================================
@@ -1,83 +0,0 @@
-{if $prefs.feature_help eq 'y'}
-    {remarksbox type="info"}
-    {tr}More information:{/tr} <a href="{$prefs.helpurl}Markdown-WYSIWYG-Page-Editor" target="tikihelp" class="tikihelp alert-link" title="{tr}Wiki Page Editor:{/tr} {tr}More help on editing wiki pages{/tr}">
-            {tr}Markdown WYSIWYG Page Editor{/tr}
-        </a>
-        {tr}and{/tr}
-        <a href="{$prefs.helpurl}Markdown-syntax" target="tikihelp" class="tikihelp alert-link" title="{tr}Wiki Syntax:{/tr} {tr}The syntax system used for creating pages in Tiki{/tr}">
-            {tr}Markdown Syntax{/tr}
-        </a>
-    {/remarksbox}
-{/if}
-<table class="table table-condensed table-hover">
-    <tr>
-        <td>
-            {icon name='bold'} 
-            <strong>{tr}Bold text{/tr}</strong> &nbsp;&nbsp;&nbsp; 
-            <code>**{tr}text{/tr}**</code> {tr}or{/tr} <code>__{tr}text{/tr}__</code>
-        </td>
-        </tr>
-        <tr>
-        <td>
-            {icon name='italic'} 
-            <strong>{tr}Italic text{/tr}</strong> &nbsp;&nbsp;&nbsp; 
-            <code>*{tr}text{/tr}*</code> {tr}or{/tr} <code>_{tr}text{/tr}_</code>
-        </td>
-        </tr>
-        <tr>
-        <td>
-            {icon name='strikethrough'} 
-            <strong>{tr}Deleted text{/tr}</strong> &nbsp;&nbsp;&nbsp; 
-            <code>~~{tr}text{/tr}~~</code>
-        </td>
-    </tr>
-    <tr>
-        <td>
-            {icon name='h1'} 
-            <strong>{tr}Headings{/tr}</strong> <br/>
-            <code># Heading 1</code>, <code>## Heading 2</code>, <code>### Heading 3</code>
-        </td>
-        </tr>
-        <tr>
-        <td>
-            {icon name='horizontal-rule'} 
-            <strong>{tr}Horizontal rule{/tr}</strong> &nbsp;&nbsp;&nbsp; 
-            <code>---</code> {tr}or{/tr} <code>***</code>
-        </td>
-        </tr>
-        <tr>
-        <td>
-            {icon name='link-external'} 
-            <strong>{tr}External links{/tr}</strong> &nbsp;&nbsp;&nbsp; 
-            <code>[text](url)</code>
-        </td>
-    </tr>
-    <tr>
-        <td>
-            {icon name='list'} {icon name='list-numbered'} 
-            <strong>{tr}Lists{/tr}</strong>
-            <br>
-            <code>*</code> {tr}or{/tr} <code>-</code>  {tr}for bullet lists,{/tr}<br>
-            <code>1.</code>, <code>2.</code>, <code>3.</code> etc.  {tr}for numbered lists,{/tr}
-        </td>
-    </tr>
-    <tr>
-        <td>
-            {icon name='table'} 
-            <strong>{tr}Tables{/tr}</strong>
-            <br/>
-            <code>
-            | {tr}row{/tr}1-{tr}col{/tr}1 | {tr}row{/tr}1-{tr}col{/tr}2 | {tr}row{/tr}1-{tr}col{/tr}3 |<br>
-            | --------- | --------- | --------- |<br>
-            | {tr}row{/tr}2-{tr}col{/tr}1 | {tr}row{/tr}2-{tr}col{/tr}2 | {tr}row{/tr}2-{tr}col{/tr}3 |
-            </code>
-        </td>
-    </tr>
-    <tr>
-        <td>
-            {icon name='code'} 
-            <strong>{tr}Monospace font{/tr}</strong> &nbsp;&nbsp;&nbsp; 
-            <code>`{tr}Code sample{/tr}`</code>
-        </td>
-    </tr>
-</table>



View it on GitLab: https://gitlab.com/tikiwiki/tiki/-/commit/b167d4d3dfdc6fc12d831bc69f176cf211def032

-- 
View it on GitLab: https://gitlab.com/tikiwiki/tiki/-/commit/b167d4d3dfdc6fc12d831bc69f176cf211def032
You're receiving this email because of your account on gitlab.com.

_______________________________________________
TikiWiki-cvs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/tikiwiki-cvs
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.