forked from TrueCloudLab/rclone
drive: add support for markdown format
This commit is contained in:
parent
8a6fc8535d
commit
17e7ccfad5
3 changed files with 3 additions and 1 deletions
|
@ -120,6 +120,7 @@ var (
|
||||||
"text/html": ".html",
|
"text/html": ".html",
|
||||||
"text/plain": ".txt",
|
"text/plain": ".txt",
|
||||||
"text/tab-separated-values": ".tsv",
|
"text/tab-separated-values": ".tsv",
|
||||||
|
"text/markdown": ".md",
|
||||||
}
|
}
|
||||||
_mimeTypeToExtensionLinks = map[string]string{
|
_mimeTypeToExtensionLinks = map[string]string{
|
||||||
"application/x-link-desktop": ".desktop",
|
"application/x-link-desktop": ".desktop",
|
||||||
|
|
|
@ -95,7 +95,7 @@ func TestInternalParseExtensions(t *testing.T) {
|
||||||
wantErr error
|
wantErr error
|
||||||
}{
|
}{
|
||||||
{"doc", []string{".doc"}, nil},
|
{"doc", []string{".doc"}, nil},
|
||||||
{" docx ,XLSX, pptx,svg", []string{".docx", ".xlsx", ".pptx", ".svg"}, nil},
|
{" docx ,XLSX, pptx,svg,md", []string{".docx", ".xlsx", ".pptx", ".svg", ".md"}, nil},
|
||||||
{"docx,svg,Docx", []string{".docx", ".svg"}, nil},
|
{"docx,svg,Docx", []string{".docx", ".svg"}, nil},
|
||||||
{"docx,potato,docx", []string{".docx"}, errors.New(`couldn't find MIME type for extension ".potato"`)},
|
{"docx,potato,docx", []string{".docx"}, errors.New(`couldn't find MIME type for extension ".potato"`)},
|
||||||
} {
|
} {
|
||||||
|
|
|
@ -536,6 +536,7 @@ represent the currently available conversions.
|
||||||
| html | text/html | An HTML Document |
|
| html | text/html | An HTML Document |
|
||||||
| jpg | image/jpeg | A JPEG Image File |
|
| jpg | image/jpeg | A JPEG Image File |
|
||||||
| json | application/vnd.google-apps.script+json | JSON Text Format for Google Apps scripts |
|
| json | application/vnd.google-apps.script+json | JSON Text Format for Google Apps scripts |
|
||||||
|
| md | text/markdown | Markdown Text Format |
|
||||||
| odp | application/vnd.oasis.opendocument.presentation | Openoffice Presentation |
|
| odp | application/vnd.oasis.opendocument.presentation | Openoffice Presentation |
|
||||||
| ods | application/vnd.oasis.opendocument.spreadsheet | Openoffice Spreadsheet |
|
| ods | application/vnd.oasis.opendocument.spreadsheet | Openoffice Spreadsheet |
|
||||||
| ods | application/x-vnd.oasis.opendocument.spreadsheet | Openoffice Spreadsheet |
|
| ods | application/x-vnd.oasis.opendocument.spreadsheet | Openoffice Spreadsheet |
|
||||||
|
|
Loading…
Reference in a new issue