#pragma once #include "MarkdownASTNode.hpp" #include #include namespace Markdown { struct Md4cFlags { bool underline = false; bool latexMath = true; bool superscript = false; bool subscript = false; bool highlight = false; bool permissiveAutolinks = true; bool hardSoftBreaks = false; bool preserveBlankLines = false; bool admonitions = true; }; class MD4CParser { public: MD4CParser(); ~MD4CParser(); // Parse markdown string and return AST root node std::shared_ptr parse( const std::string& markdown, const Md4cFlags& flags = Md4cFlags{}, bool isGFM = true); private: class Impl; std::unique_ptr impl_; }; } // namespace Markdown