Adds wrapper to md4c code, fixes issues with previous commit

This commit is contained in:
Rosia E Evans 2023-09-16 15:21:12 +01:00
parent 6d98202f38
commit d19c822764
31 changed files with 175 additions and 1722 deletions

View file

@ -1,9 +1,24 @@
#pragma once
#include <string>
#include <stdio.h>
#include <string>
#include <fstream>
#include <sstream>
#include "Libs/md4c-html.h"
/*
* Essentially just a wrapper for md4c's C code so thats its easier
* for my squishy little brain to handle
*/
class BlogParser
{
private:
static void saveTextToFile(const MD_CHAR* text, MD_SIZE size, void* unneeded);
struct UserData{
std::string outputFileName;
};
public:
BlogParser();
std::string ParseText(std::string text);
int parse(std::string inputFileName, std::string outputFileName);
};