Describe the bug
[.interview] incorrect parsing of questions as body. The first and second questions are interpreted as ‘body’.
To Reproduce
Parse the following bitmark to produce JSON output:
[.interview:bitmark--&image]
[@id:136477]
[%2]
[&image:https://docs.bitmark.cloud/bit-books/aufnahmepruefung_gymnasium_kt_zh/mathe_2019/web-resources/images/aufnahmepruefung1.png]
[!__Auf dem Ponyhof__]
===
a) Wie gross ist der Futterbedarf im Monat März für alle Ponys?
===
b) Wie viel sollte ein Reiter eines Ponys mit durchschnittlichem Gewicht höchstens wiegen?
===
c) Einmal pro Tag wird Wasser für die Ponys bereitgestellt. Wie viele Wassertröge werden mindestens benötigt?
===
The following JSON is produced:
{
"bitmark": "[.interview:bitmark--&image]\n[@id:136477]\n[%2]\n[&image:https://docs.bitmark.cloud/bit-books/aufnahmepruefung_gymnasium_kt_zh/mathe_2019/web-resources/images/aufnahmepruefung1.png]\n\n[!__Auf dem Ponyhof__]\n===\na) Wie gross ist der Futterbedarf im Monat März für alle Ponys?\n===\nb) Wie viel sollte ein Reiter eines Ponys mit durchschnittlichem Gewicht höchstens wiegen?\n===\nc) Einmal pro Tag wird Wasser für die Ponys bereitgestellt. Wie viele Wassertröge werden mindestens benötigt?\n===",
"bit": {
"type": "interview",
"format": "bitmark--",
"item": "2",
"instruction": "__Auf dem Ponyhof__",
"body": "a) Wie gross ist der Futterbedarf im Monat März für alle Ponys?b) Wie viel sollte ein Reiter eines Ponys mit durchschnittlichem Gewicht höchstens wiegen?",
"footer": "",
"hint": "",
"questions": [
{
"item": "",
"question": "a) Wie gross ist der Futterbedarf im Monat März für alle Ponys?",
"instruction": "",
"hint": "",
"isExample": false,
"example": "",
"sampleSolution": "",
"partialAnswer": "",
"isShortAnswer": true
},
{
"item": "",
"question": "b) Wie viel sollte ein Reiter eines Ponys mit durchschnittlichem Gewicht höchstens wiegen?",
"instruction": "",
"hint": "",
"isExample": false,
"example": "",
"sampleSolution": "",
"partialAnswer": "",
"isShortAnswer": true
},
{
"item": "",
"question": "c) Einmal pro Tag wird Wasser für die Ponys bereitgestellt. Wie viele Wassertröge werden mindestens benötigt?",
"instruction": "",
"hint": "",
"isExample": false,
"example": "",
"sampleSolution": "",
"partialAnswer": "",
"isShortAnswer": true
}
],
"id": [
"136477"
],
"resource": {
"type": "image",
"image": {
"src": "https://docs.bitmark.cloud/bit-books/aufnahmepruefung_gymnasium_kt_zh/mathe_2019/web-resources/images/aufnahmepruefung1.png",
"showInIndex": false,
"format": "png",
"width": null,
"height": null,
"alt": "",
"caption": "",
"license": "",
"copyright": ""
}
}
}
}
Expected behavior
The questions are not included in the 'body'
Describe the bug [.interview] incorrect parsing of questions as body. The first and second questions are interpreted as ‘body’.
To Reproduce Parse the following bitmark to produce JSON output:
The following JSON is produced:
Expected behavior The questions are not included in the 'body'
versions 1.0.38