From 2eae362fd3f50325067fa3d7e13db6882df80e76 Mon Sep 17 00:00:00 2001 From: Aleksey Veresov Date: Fri, 27 Sep 2019 18:09:07 +0300 Subject: Texo initial. --- example/plain_to_html.cpp | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 example/plain_to_html.cpp (limited to 'example/plain_to_html.cpp') diff --git a/example/plain_to_html.cpp b/example/plain_to_html.cpp new file mode 100644 index 0000000..86171a6 --- /dev/null +++ b/example/plain_to_html.cpp @@ -0,0 +1,23 @@ +#include +#include +#include +#include +#include +#include + + +int main() +{ + TexoFileExporter exporter(stdout); + TexoHTMLProducer producer(exporter); + TexoPlainImporter importer(producer); + importer.PutStr( + "I am a little cute line. \n" + "I am another and that's fine. \n" + "But I am as long as a pine,\n" + "so lets drink a glass of wine.\n\n" + "Second paragraph was started here. \n" + "Take your bananas and go home, seer.\n" + ); + return 0; +} -- cgit v1.2.3