Fossil SCM
Set the default wiki editor mimetype to markdown in two spots.
Commit
bf0daf079687f932dd711d26d01c17af70e6c576d4b3fc9bff731005f5417eb8
Parent
76742655f00daf8…
1 file changed
+2
-2
+2
-2
| --- src/wiki.c | ||
| +++ src/wiki.c | ||
| @@ -914,11 +914,11 @@ | ||
| 914 | 914 | "\"version\": %!j, " |
| 915 | 915 | "\"mimetype\": %!j, ", |
| 916 | 916 | pWiki->zWikiTitle, |
| 917 | 917 | wiki_page_type_name(pWiki->zWikiTitle), |
| 918 | 918 | zUuid, |
| 919 | - pWiki->zMimetype ? pWiki->zMimetype : "text/x-fossil-wiki"); | |
| 919 | + pWiki->zMimetype ? pWiki->zMimetype : "text/x-markdown"); | |
| 920 | 920 | CX("\"parent\": "); |
| 921 | 921 | if(pWiki->nParent){ |
| 922 | 922 | CX("%!j", pWiki->azParent[0]); |
| 923 | 923 | }else{ |
| 924 | 924 | CX("null"); |
| @@ -1509,11 +1509,11 @@ | ||
| 1509 | 1509 | "\"name\": %!j, \"mimetype\": %!j, " |
| 1510 | 1510 | "\"type\": %!j, " |
| 1511 | 1511 | "\"parent\": null, \"version\": null" |
| 1512 | 1512 | "};\n", |
| 1513 | 1513 | zPageName, |
| 1514 | - zMimetype ? zMimetype : "text/x-fossil-wiki", | |
| 1514 | + zMimetype ? zMimetype : "text/x-markdown", | |
| 1515 | 1515 | wiki_page_type_name(zPageName)); |
| 1516 | 1516 | /* If the JS-side stash already has this page, load that |
| 1517 | 1517 | copy from the stash, otherwise inject a new stash entry |
| 1518 | 1518 | for it and load *that* one... */ |
| 1519 | 1519 | CX("if(!P.$stash.getWinfo(winfo)){" |
| 1520 | 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-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 |