showdownjs / showdown

A bidirectional Markdown to HTML to Markdown converter written in Javascript
http://www.showdownjs.com/
MIT License
14.19k stars 1.56k forks source link

YML metadata does not support objects/arrays in it #941

Open GreepTheSheep opened 2 years ago

GreepTheSheep commented 2 years ago

I'm trying to get datas that have objects and arrays on it in a YML format, but it returns something wrong

.md file:

description: Remove a track by its UID from your favorite tracks
route: /api/token/map/favorite/{mapUid}/remove
method: POST
parameters:
    path:
        mapUid:
            type: string
            description: The UID of the map
            required: true
            default: ""

Returned object:

Excepted:

{
    "description": "Remove a track by its UID from your favorite tracks",
    "route": "/api/token/map/favorite/{mapUid}/remove",
    "method": "POST",
    "parameters": {
        "path": {
            "mapUid": {
                "type": "string",
                "description": "The UID of the map",
                "required": true,
                "default": ""
            }
        }
    }
}

Actual:

{
"description": "Remove a track by its UID from your favorite tracks",
"route": "/api/token/map/favorite/{mapUid}/remove",
"method": "POST",
"parameters: path:     mapUid:         type: string         description: The UID of the map         required: true         default": """"
}
danieldll099 commented 2 years ago

agreed