summaryrefslogtreecommitdiff
path: root/examples/markdown.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'examples/markdown.cpp')
-rw-r--r--examples/markdown.cpp28
1 files changed, 14 insertions, 14 deletions
diff --git a/examples/markdown.cpp b/examples/markdown.cpp
index c1677f3..75a32ca 100644
--- a/examples/markdown.cpp
+++ b/examples/markdown.cpp
@@ -1,18 +1,18 @@
-#include <stdio.h>
+#include <file.hpp>
#include <html.hpp>
-#include <plain.hpp>
#include <lines.hpp>
#include <markdown.hpp>
-#include <file.hpp>
+#include <plain.hpp>
+#include <stdio.h>
void plain()
{
fputs(" ---- Markdown to Plain ----\n", stdout);
- TexoExporterFile exporter(stdout);
- TexoProducerPlain producer(exporter);
+ TexoExporterFile exporter(stdout);
+ TexoProducerPlain producer(exporter);
TexoImporterMarkdown importer(producer);
- FILE *file = fopen("markdown.md", "r");
+ FILE * file = fopen("markdown.md", "r");
importer.Put(file);
importer.End();
fclose(file);
@@ -21,10 +21,10 @@ void plain()
void html()
{
fputs("\n ---- Markdown to HTML ----\n", stdout);
- TexoExporterFile exporter(stdout);
- TexoProducerHTML producer(exporter);
+ TexoExporterFile exporter(stdout);
+ TexoProducerHTML producer(exporter);
TexoImporterMarkdown importer(producer);
- FILE *file = fopen("markdown.md", "r");
+ FILE * file = fopen("markdown.md", "r");
importer.Put(file);
importer.End();
fclose(file);
@@ -33,10 +33,10 @@ void html()
void markdown()
{
fputs("\n ---- Markdown to Markdown ----\n", stdout);
- TexoExporterFile exporter(stdout);
+ TexoExporterFile exporter(stdout);
TexoProducerMarkdown producer(exporter);
TexoImporterMarkdown importer(producer);
- FILE *file = fopen("markdown.md", "r");
+ FILE * file = fopen("markdown.md", "r");
importer.Put(file);
importer.End();
fclose(file);
@@ -45,10 +45,10 @@ void markdown()
void lines()
{
fputs("\n ---- Markdown to Lines ----\n", stdout);
- TexoExporterFile exporter(stdout);
- TexoProducerLines producer(exporter);
+ TexoExporterFile exporter(stdout);
+ TexoProducerLines producer(exporter);
TexoImporterMarkdown importer(producer);
- FILE *file = fopen("markdown.md", "r");
+ FILE * file = fopen("markdown.md", "r");
importer.Put(file);
importer.End();
fclose(file);