Merge branch 'feature/nodes-implementation' of https://git.gophernest.net/azpect/MarkdownToHtmlCompiler into feature/nodes-implementation
This commit is contained in:
commit
485798de98
@ -1,4 +1,4 @@
|
|||||||
#include "./node.h"
|
#include "node.h"
|
||||||
|
|
||||||
#include <iostream>
|
#include <iostream>
|
||||||
#include <memory>
|
#include <memory>
|
||||||
|
|||||||
@ -1,5 +1,5 @@
|
|||||||
#include "./parser.h"
|
#include "parser.h"
|
||||||
#include "./util.h"
|
#include "util.h"
|
||||||
#include <cctype>
|
#include <cctype>
|
||||||
#include <stdexcept>
|
#include <stdexcept>
|
||||||
|
|
||||||
|
|||||||
1
lib/structureNode.cpp
Normal file
1
lib/structureNode.cpp
Normal file
@ -0,0 +1 @@
|
|||||||
|
#include "structureNode.h"
|
||||||
13
lib/structureNode.h
Normal file
13
lib/structureNode.h
Normal file
@ -0,0 +1,13 @@
|
|||||||
|
#ifndef STRUCTURENODE_H
|
||||||
|
#define STRUCTURENODE_H
|
||||||
|
|
||||||
|
#include "node.h"
|
||||||
|
|
||||||
|
class StructureNode : public Node {};
|
||||||
|
|
||||||
|
class ListNode : public StructureNode {};
|
||||||
|
class HeadingNode : public StructureNode {};
|
||||||
|
class DocumentNode : public StructureNode {};
|
||||||
|
class ParagraphNode : public StructureNode {};
|
||||||
|
|
||||||
|
#endif
|
||||||
@ -1,4 +1,4 @@
|
|||||||
#include "./util.h"
|
#include "util.h"
|
||||||
|
|
||||||
void removeTrailingWhitespace(std::string &input) {
|
void removeTrailingWhitespace(std::string &input) {
|
||||||
size_t start = input.find_first_not_of(" \t\n\r\f\v");
|
size_t start = input.find_first_not_of(" \t\n\r\f\v");
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user