Markdownni HTMLga aylantirish uchun ochiq manbali C++ kutubxonasidan foydalanish yanada ishonchli yechim bo'ladi. Buning uchun ishlatilishi mumkin bo'lgan C++ kutubxonasining misoli maddy. maddy - bu faqat C++ 14 standart kutubxonasiga bog'liq bo'lgan MIT litsenziyalangan sarlavha kutubxonasi. `markdownToHtml` funktsiyasini maddy kutubxonasidan quyidagicha qayta amalga oshirish mumkin: `` #include <memory> #include <sstream> #include <string> #include "maddy/parser.h" std::stringdownToHtml mark{(std::string&markdown) {std::stringstreammarkdownStream{(markdown); auto parser = std::make_unique<maddy::Parser{
spam fails_task lang_mismatch pii not_appropriate hate_speech sexual_content quality toxicity humor helpfulness creativity violence