summaryrefslogtreecommitdiff
path: root/src/markdown.hpp
diff options
context:
space:
mode:
authorAleksey Veresov <aleksey@veresov.pro>2019-11-13 19:16:21 +0300
committerAleksey Veresov <aleksey@veresov.pro>2019-11-13 19:16:21 +0300
commita45cb537ab82f13f29f1bc33dd8bf998b3fb9c9b (patch)
tree1b9473f7f27221a5de56bb51edacd5be9a61a6b9 /src/markdown.hpp
parented7a63015c1583d5544ac18bbaccaedc95f3e5e3 (diff)
downloadtexo-a45cb537ab82f13f29f1bc33dd8bf998b3fb9c9b.tar
texo-a45cb537ab82f13f29f1bc33dd8bf998b3fb9c9b.tar.xz
texo-a45cb537ab82f13f29f1bc33dd8bf998b3fb9c9b.zip
Cosmetical changes.
Diffstat (limited to 'src/markdown.hpp')
-rw-r--r--src/markdown.hpp20
1 files changed, 9 insertions, 11 deletions
diff --git a/src/markdown.hpp b/src/markdown.hpp
index ee8aee8..d8af037 100644
--- a/src/markdown.hpp
+++ b/src/markdown.hpp
@@ -2,13 +2,13 @@
#define TEXO_INCLUDED_MARKDOWN
#include "exporter.hpp"
-#include "producer.hpp"
#include "importer.hpp"
+#include "producer.hpp"
class TexoProducerMarkdown: public TexoProducer {
public:
- TexoProducerMarkdown(TexoExporter &exporter);
+ TexoProducerMarkdown(TexoExporter & exporter);
bool End();
@@ -25,18 +25,15 @@ public:
bool Strike();
bool Underline();
- bool Link(const ScriptVariable &link, const ScriptVariable &title);
+ bool Link(const ScriptVariable & link, const ScriptVariable & title);
bool Link();
- bool PutImage(
- const ScriptVariable &src,
- const ScriptVariable &alt,
- const ScriptVariable &title
- );
+ bool PutImage(const ScriptVariable & src, const ScriptVariable & alt,
+ const ScriptVariable & title);
bool PutHorizontalRule();
private:
- bool Mod(const ScriptVariable &str);
+ bool Mod(const ScriptVariable & str);
bool Close();
bool CloseLink();
@@ -53,7 +50,7 @@ private:
class TexoImporterMarkdown: public TexoImporter {
public:
- TexoImporterMarkdown(TexoProducer &producer);
+ TexoImporterMarkdown(TexoProducer & producer);
protected:
@@ -82,7 +79,8 @@ private:
header,
header_pre,
code
- } state, back;
+ } state,
+ back;
int header_level;
int rule_dash_count;
int code_quote_count;