Fossil SCM

Set the default wiki editor mimetype to markdown in two spots.

stephan 2026-09-28 15:54 UTC trunk
Commit bf0daf079687f932dd711d26d01c17af70e6c576d4b3fc9bff731005f5417eb8
1 file changed +2 -2
+2 -2
--- src/wiki.c
+++ src/wiki.c
@@ -914,11 +914,11 @@
914914
"\"version\": %!j, "
915915
"\"mimetype\": %!j, ",
916916
pWiki->zWikiTitle,
917917
wiki_page_type_name(pWiki->zWikiTitle),
918918
zUuid,
919
- pWiki->zMimetype ? pWiki->zMimetype : "text/x-fossil-wiki");
919
+ pWiki->zMimetype ? pWiki->zMimetype : "text/x-markdown");
920920
CX("\"parent\": ");
921921
if(pWiki->nParent){
922922
CX("%!j", pWiki->azParent[0]);
923923
}else{
924924
CX("null");
@@ -1509,11 +1509,11 @@
15091509
"\"name\": %!j, \"mimetype\": %!j, "
15101510
"\"type\": %!j, "
15111511
"\"parent\": null, \"version\": null"
15121512
"};\n",
15131513
zPageName,
1514
- zMimetype ? zMimetype : "text/x-fossil-wiki",
1514
+ zMimetype ? zMimetype : "text/x-markdown",
15151515
wiki_page_type_name(zPageName));
15161516
/* If the JS-side stash already has this page, load that
15171517
copy from the stash, otherwise inject a new stash entry
15181518
for it and load *that* one... */
15191519
CX("if(!P.$stash.getWinfo(winfo)){"
15201520
--- src/wiki.c
+++ src/wiki.c
@@ -914,11 +914,11 @@
914 "\"version\": %!j, "
915 "\"mimetype\": %!j, ",
916 pWiki->zWikiTitle,
917 wiki_page_type_name(pWiki->zWikiTitle),
918 zUuid,
919 pWiki->zMimetype ? pWiki->zMimetype : "text/x-fossil-wiki");
920 CX("\"parent\": ");
921 if(pWiki->nParent){
922 CX("%!j", pWiki->azParent[0]);
923 }else{
924 CX("null");
@@ -1509,11 +1509,11 @@
1509 "\"name\": %!j, \"mimetype\": %!j, "
1510 "\"type\": %!j, "
1511 "\"parent\": null, \"version\": null"
1512 "};\n",
1513 zPageName,
1514 zMimetype ? zMimetype : "text/x-fossil-wiki",
1515 wiki_page_type_name(zPageName));
1516 /* If the JS-side stash already has this page, load that
1517 copy from the stash, otherwise inject a new stash entry
1518 for it and load *that* one... */
1519 CX("if(!P.$stash.getWinfo(winfo)){"
1520
--- src/wiki.c
+++ src/wiki.c
@@ -914,11 +914,11 @@
914 "\"version\": %!j, "
915 "\"mimetype\": %!j, ",
916 pWiki->zWikiTitle,
917 wiki_page_type_name(pWiki->zWikiTitle),
918 zUuid,
919 pWiki->zMimetype ? pWiki->zMimetype : "text/x-markdown");
920 CX("\"parent\": ");
921 if(pWiki->nParent){
922 CX("%!j", pWiki->azParent[0]);
923 }else{
924 CX("null");
@@ -1509,11 +1509,11 @@
1509 "\"name\": %!j, \"mimetype\": %!j, "
1510 "\"type\": %!j, "
1511 "\"parent\": null, \"version\": null"
1512 "};\n",
1513 zPageName,
1514 zMimetype ? zMimetype : "text/x-markdown",
1515 wiki_page_type_name(zPageName));
1516 /* If the JS-side stash already has this page, load that
1517 copy from the stash, otherwise inject a new stash entry
1518 for it and load *that* one... */
1519 CX("if(!P.$stash.getWinfo(winfo)){"
1520

Keyboard Shortcuts

Open search /
Next entry (timeline) j
Previous entry (timeline) k
Open focused entry Enter
Show this help ?
Toggle theme Top nav button