summaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
Diffstat (limited to 'examples')
-rw-r--r--examples/lines.cpp8
-rw-r--r--examples/lines.txt2
-rw-r--r--examples/markdown.cpp8
-rw-r--r--examples/markdown.md12
-rw-r--r--examples/plain.cpp8
5 files changed, 25 insertions, 13 deletions
diff --git a/examples/lines.cpp b/examples/lines.cpp
index 04d06ab..7c46a6e 100644
--- a/examples/lines.cpp
+++ b/examples/lines.cpp
@@ -8,7 +8,7 @@
void plain()
{
- fputs(" ---- Lines to Plain ----\n\n", stdout);
+ fputs(" ---- Lines to Plain ----\n", stdout);
TexoExporterFile exporter(stdout);
TexoProducerPlain producer(exporter);
TexoImporterLines importer(producer);
@@ -20,7 +20,7 @@ void plain()
void html()
{
- fputs("\n\n ---- Lines to HTML ----\n\n", stdout);
+ fputs("\n ---- Lines to HTML ----\n", stdout);
TexoExporterFile exporter(stdout);
TexoProducerHTML producer(exporter);
TexoImporterLines importer(producer);
@@ -32,7 +32,7 @@ void html()
void markdown()
{
- fputs("\n\n ---- Lines to Markdown ----\n\n", stdout);
+ fputs("\n ---- Lines to Markdown ----\n", stdout);
TexoExporterFile exporter(stdout);
TexoProducerMarkdown producer(exporter);
TexoImporterLines importer(producer);
@@ -44,7 +44,7 @@ void markdown()
void lines()
{
- fputs("\n\n ---- Lines to Lines ----\n\n", stdout);
+ fputs("\n ---- Lines to Lines ----\n", stdout);
TexoExporterFile exporter(stdout);
TexoProducerLines producer(exporter);
TexoImporterLines importer(producer);
diff --git a/examples/lines.txt b/examples/lines.txt
index a227a08..066a342 100644
--- a/examples/lines.txt
+++ b/examples/lines.txt
@@ -1,2 +1,4 @@
Simpliest format. Paragraphs on newlines. And nothing else.
So this is second paragraph.
+> Some quote.
+> This is another.
diff --git a/examples/markdown.cpp b/examples/markdown.cpp
index 1e95db0..c1677f3 100644
--- a/examples/markdown.cpp
+++ b/examples/markdown.cpp
@@ -8,7 +8,7 @@
void plain()
{
- fputs(" ---- Markdown to Plain ----\n\n", stdout);
+ fputs(" ---- Markdown to Plain ----\n", stdout);
TexoExporterFile exporter(stdout);
TexoProducerPlain producer(exporter);
TexoImporterMarkdown importer(producer);
@@ -20,7 +20,7 @@ void plain()
void html()
{
- fputs("\n\n ---- Markdown to HTML ----\n\n", stdout);
+ fputs("\n ---- Markdown to HTML ----\n", stdout);
TexoExporterFile exporter(stdout);
TexoProducerHTML producer(exporter);
TexoImporterMarkdown importer(producer);
@@ -32,7 +32,7 @@ void html()
void markdown()
{
- fputs("\n\n ---- Markdown to Markdown ----\n\n", stdout);
+ fputs("\n ---- Markdown to Markdown ----\n", stdout);
TexoExporterFile exporter(stdout);
TexoProducerMarkdown producer(exporter);
TexoImporterMarkdown importer(producer);
@@ -44,7 +44,7 @@ void markdown()
void lines()
{
- fputs("\n\n ---- Markdown to Lines ----\n\n", stdout);
+ fputs("\n ---- Markdown to Lines ----\n", stdout);
TexoExporterFile exporter(stdout);
TexoProducerLines producer(exporter);
TexoImporterMarkdown importer(producer);
diff --git a/examples/markdown.md b/examples/markdown.md
index 341acb2..2d86e81 100644
--- a/examples/markdown.md
+++ b/examples/markdown.md
@@ -7,6 +7,16 @@ blah-blah-blah...
New paragraph. *Italic*. **Bold**. _alternative_ __style__.
++Underlined++. ~~Striked~~. `Mono`.
+What about __*strange*__?
+__*Even* stranger__?
+_**Apocalyptically** strange_?
+*__Different__ order*?
+
+(Note: \*\*\* means bold and italic. In that exact order.
+So closing in any over will produce incorrect HTML.
+To make things even worse, no error will be produced.
+Unclosed modificators are similar.)
+
----
This was horizontal rule.
@@ -17,7 +27,7 @@ This was horizontal rule.
```
bool Block::is\_code()
{
- **return** this->should\_be();
+ **return** this->should\_be() + 1;
}
```
diff --git a/examples/plain.cpp b/examples/plain.cpp
index f03ee68..bf48472 100644
--- a/examples/plain.cpp
+++ b/examples/plain.cpp
@@ -8,7 +8,7 @@
void plain()
{
- fputs(" ---- Plain to Plain ----\n\n", stdout);
+ fputs(" ---- Plain to Plain ----\n", stdout);
TexoExporterFile exporter(stdout);
TexoProducerPlain producer(exporter);
TexoImporterPlain importer(producer);
@@ -20,7 +20,7 @@ void plain()
void html()
{
- fputs("\n\n ---- Plain to HTML ----\n\n", stdout);
+ fputs("\n ---- Plain to HTML ----\n", stdout);
TexoExporterFile exporter(stdout);
TexoProducerHTML producer(exporter);
TexoImporterPlain importer(producer);
@@ -32,7 +32,7 @@ void html()
void markdown()
{
- fputs("\n\n ---- Plain to Markdown ----\n\n", stdout);
+ fputs("\n ---- Plain to Markdown ----\n", stdout);
TexoExporterFile exporter(stdout);
TexoProducerMarkdown producer(exporter);
TexoImporterPlain importer(producer);
@@ -44,7 +44,7 @@ void markdown()
void lines()
{
- fputs("\n\n ---- Plain to Lines ----\n\n", stdout);
+ fputs("\n ---- Plain to Lines ----\n", stdout);
TexoExporterFile exporter(stdout);
TexoProducerLines producer(exporter);
TexoImporterPlain importer(producer);