mirror of
https://github.com/progsource/maddy.git
synced 2026-03-26 00:10:37 +01:00
Some checks failed
run-checks / run-clang-format (push) Has been cancelled
run-tests / test-on-ubuntu (push) Has been cancelled
run-tests / test-on-windows (push) Has been cancelled
run-tests / test-on-osx (push) Has been cancelled
26 lines
627 B
C++
26 lines
627 B
C++
/*
|
|
* This project is licensed under the MIT license. For more information see the
|
|
* LICENSE file.
|
|
*
|
|
* This file is a tiny example project to test if find_package works correctly.
|
|
*/
|
|
#include <iostream>
|
|
#include <memory>
|
|
#include <sstream>
|
|
#include <string>
|
|
|
|
#include "maddy/parser.h"
|
|
|
|
int main(int argc, char** argv)
|
|
{
|
|
std::shared_ptr<maddy::Parser> parser = std::make_shared<maddy::Parser>();
|
|
|
|
std::stringstream markdownStream;
|
|
markdownStream << "# Hello World\n"
|
|
<< "This is a **bold** text and this is *italic* text.\n";
|
|
|
|
std::cout << parser->Parse(markdownStream) << std::endl;
|
|
|
|
return 0;
|
|
}
|