{ lines.map((line, index) => { const image = line.match(imagePattern); const gallery = line.match(galleryPattern); const question = line.match(questionPattern); const options = getOptions(line); if (image) { return ( {image[2]} ); } if (gallery) { const images = gallery[1].split(","); return ( {images.map((src, imageIndex) => ( 图 {imageIndex + 1} { questionNumber === 15 && ( 标题 ) } ))} ); } if (question) { questionNumber += 1; const currentQuestionNumber = questionNumber; const fillQuestion = fillQuestionMap.get(currentQuestionNumber); return ( {currentQuestionNumber} { fillQuestion?.mode === "unordered-names" ? ( {Array.from({ length: fillQuestion.blankCount }, (_, blankIndex) => ( {blankIndex + 1} ))} ) : null } ); } if (options.length > 0) { return ( {options.map((option) => ( ))} ); } if (index === 0) { return ( 姓名 准考证号 座位号 ); } if (index < 3) { return ( ); } if (isSectionLine(line)) { return {line}; } if (line === "注意事项:" || line === "注释:") { return {line}; } if (questionNumber === 13 && line.includes("▲")) { return ; } return ; }) }