Skip to content
This repository was archived by the owner on Dec 11, 2018. It is now read-only.
This repository was archived by the owner on Dec 11, 2018. It is now read-only.

Unknown content type "text_markdown"  #23

@kwangkim

Description

@kwangkim

For all md files, I received

 Unknown content type "text_markdown"

For each file, I need to add

content_type: text/x-markdown

I think this error came from mime-types library since lookup function only return text/markdown not text/x-markdown.
https://github.com/jshttp/mime-types#mimelookuppath

I could fix this by putting
https://github.com/kwangkim/exerslide/blob/610cdc7f70e5a6d8ed526220c3b2cbe19450fb1b/packages/exerslide/lib/slide_transforms/registerContentType.js#L45

        if (contentType === "text_markdown"){
          contentType = "text\/x-markdown"
        }

P.S.
https://github.com/jshttp/mime-db/blob/66588fec459c0d61cec5c69cfd161b139f75cf7d/db.json#L6561

Another resolution was using 'mkd' instead 'md'.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions