Is there a standard content (mime) type I should be using for wiki formatted text files?

712 Views Asked by At

I am taking user input as either wiki formatted text (creole) or possibly markdown formatted text.

I was wondering if there are there any existing content types standard for this sort of text.

I was hoping for something like "text/wiki_creole" or "text/markdown".

EDIT

Looks like there are no standards. The best I could find was

text/x-web-markdown
text/x-web-textile

which seem to be commonly used. Other than that it seems it is not unusual to use vendor specific types too, GitHub uses formats like

application/vnd.github-issue.raw+json
2

There are 2 best solutions below

0
Rembunator On

I also found this (experimental) media/mime-type:

text/x-wiki.creole
0
pintoch On

Looks like Wikimedia uses text/x-wiki, according to this API documentation:

https://www.wikidata.org/w/api.php?action=help&modules=wbformatvalue