markdown-to-json icon indicating copy to clipboard operation
markdown-to-json copied to clipboard

Can't mix lists and other content

Open AnandDev8 opened this issue 6 years ago • 2 comments

Hi @njvack ,

I have tried your package for converting rasa bot framework .md file to json convertion .md file is as follows

## happy path
* greet
    - utter_greet
* request_restaurant
    - restaurant_form
    - form{"name": "restaurant_form"}
    - form{"name": null}
    - utter_slots_values
* thankyou
    - utter_noworries

## unhappy path
* greet
    - utter_greet
* request_restaurant
    - restaurant_form
    - form{"name": "restaurant_form"}
* chitchat
    - utter_chitchat
    - restaurant_form
    - form{"name": null}
    - utter_slots_values
* thankyou
    - utter_noworries

but while converting json i am facing following

markdown_to_json.markdown_to_json.ContentError: Error at line 3: Can't mix lists and other content

Any solutions ?

AnandDev8 avatar Oct 10 '19 07:10 AnandDev8

same issue. Not with Rasa doc, but a parsed HTML2Text Document (Markdown Format).

Rmsharks4 avatar May 19 '21 21:05 Rmsharks4

Same issue while parsing simple markdown (changelog-generator product):

## [3.2.0] - 2021-07-22
### HEADER0
- COMMIT1

### HEADER1
- COMMIT2
- COMMIT3

### HEADER2
- COMMIT4

dreyTee avatar Oct 12 '21 14:10 dreyTee