Fossil SCM
Changed /wikiedit and /wikinew default mimetype to markdown, as discussed in [forum:/forumpost/af11465f66 | forum post af11465f66].
Commit
4b01359fdb97daaa3900bf0a9ee74ddf39c212c5ad50f4092eae6ef05504f646
Parent
f50dccc476625b6…
1 file changed
+2
-2
+2
-2
| --- src/wiki.c | ||
| +++ src/wiki.c | ||
| @@ -1198,11 +1198,11 @@ | ||
| 1198 | 1198 | ">"); |
| 1199 | 1199 | CX("<div class='" |
| 1200 | 1200 | "wikiedit-options flex-container flex-row child-gap-small'>"); |
| 1201 | 1201 | CX("<div class='input-with-label'>" |
| 1202 | 1202 | "<label>Mime type</label>"); |
| 1203 | - mimetype_option_menu(0); | |
| 1203 | + mimetype_option_menu("text/x-markdown"); | |
| 1204 | 1204 | CX("</div>"); |
| 1205 | 1205 | style_select_list_int("select-font-size", |
| 1206 | 1206 | "editor_font_size", "Editor font size", |
| 1207 | 1207 | NULL/*tooltip*/, |
| 1208 | 1208 | 100, |
| @@ -1395,11 +1395,11 @@ | ||
| 1395 | 1395 | well_formed_wiki_name_rules(); |
| 1396 | 1396 | form_begin(0, "%R/wikinew"); |
| 1397 | 1397 | @ <p>Name of new wiki page: |
| 1398 | 1398 | @ <input style="width: 35;" type="text" name="name" value="%h(zName)" /><br /> |
| 1399 | 1399 | @ %z(href("%R/markup_help"))Markup style</a>: |
| 1400 | - mimetype_option_menu("text/x-fossil-wiki"); | |
| 1400 | + mimetype_option_menu("text/x-markdown"); | |
| 1401 | 1401 | @ <br /><input type="submit" value="Create" /> |
| 1402 | 1402 | @ </p></form> |
| 1403 | 1403 | if( zName[0] ){ |
| 1404 | 1404 | @ <p><span class="wikiError"> |
| 1405 | 1405 | @ "%h(zName)" is not a valid wiki page name!</span></p> |
| 1406 | 1406 |
| --- src/wiki.c | |
| +++ src/wiki.c | |
| @@ -1198,11 +1198,11 @@ | |
| 1198 | ">"); |
| 1199 | CX("<div class='" |
| 1200 | "wikiedit-options flex-container flex-row child-gap-small'>"); |
| 1201 | CX("<div class='input-with-label'>" |
| 1202 | "<label>Mime type</label>"); |
| 1203 | mimetype_option_menu(0); |
| 1204 | CX("</div>"); |
| 1205 | style_select_list_int("select-font-size", |
| 1206 | "editor_font_size", "Editor font size", |
| 1207 | NULL/*tooltip*/, |
| 1208 | 100, |
| @@ -1395,11 +1395,11 @@ | |
| 1395 | well_formed_wiki_name_rules(); |
| 1396 | form_begin(0, "%R/wikinew"); |
| 1397 | @ <p>Name of new wiki page: |
| 1398 | @ <input style="width: 35;" type="text" name="name" value="%h(zName)" /><br /> |
| 1399 | @ %z(href("%R/markup_help"))Markup style</a>: |
| 1400 | mimetype_option_menu("text/x-fossil-wiki"); |
| 1401 | @ <br /><input type="submit" value="Create" /> |
| 1402 | @ </p></form> |
| 1403 | if( zName[0] ){ |
| 1404 | @ <p><span class="wikiError"> |
| 1405 | @ "%h(zName)" is not a valid wiki page name!</span></p> |
| 1406 |
| --- src/wiki.c | |
| +++ src/wiki.c | |
| @@ -1198,11 +1198,11 @@ | |
| 1198 | ">"); |
| 1199 | CX("<div class='" |
| 1200 | "wikiedit-options flex-container flex-row child-gap-small'>"); |
| 1201 | CX("<div class='input-with-label'>" |
| 1202 | "<label>Mime type</label>"); |
| 1203 | mimetype_option_menu("text/x-markdown"); |
| 1204 | CX("</div>"); |
| 1205 | style_select_list_int("select-font-size", |
| 1206 | "editor_font_size", "Editor font size", |
| 1207 | NULL/*tooltip*/, |
| 1208 | 100, |
| @@ -1395,11 +1395,11 @@ | |
| 1395 | well_formed_wiki_name_rules(); |
| 1396 | form_begin(0, "%R/wikinew"); |
| 1397 | @ <p>Name of new wiki page: |
| 1398 | @ <input style="width: 35;" type="text" name="name" value="%h(zName)" /><br /> |
| 1399 | @ %z(href("%R/markup_help"))Markup style</a>: |
| 1400 | mimetype_option_menu("text/x-markdown"); |
| 1401 | @ <br /><input type="submit" value="Create" /> |
| 1402 | @ </p></form> |
| 1403 | if( zName[0] ){ |
| 1404 | @ <p><span class="wikiError"> |
| 1405 | @ "%h(zName)" is not a valid wiki page name!</span></p> |
| 1406 |