#include #include "uCalc.h" using namespace std; using namespace uCalcSoftware; int main() { uCalc uc; auto t = uc.NewTransformer(); auto source = R"(Some text... [code]print("Hello, World!") // Quoted with " var x = 'test';[/code] ...more text.)"; // This rule must disable QuoteSensitive and StatementSensitive to correctly // capture the multi-line block containing single and double quotes. auto rule = t.FromTo("'['code']'{content}'['/code']'", R"(``` {content} ```)"); rule.QuoteSensitive(false); rule.StatementSensitive(false); cout << t.Transform(source) << endl; }