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

2

9

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
Martell answered 4/7, 2011 at 14:13 Comment(2)
Answered here: what-is-the-mime-type-for-markdownMartell
Be careful, for me "wiki format" is wikicode, not markdown.Onder
M
0

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

text/x-wiki.creole
Mature answered 6/2, 2013 at 12:9 Comment(0)
W
0

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

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

Woosley answered 20/3, 2018 at 18:43 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.