qswiki/parsermarkdown.h

18 lines
483 B
C
Raw Normal View History

#ifndef PARSER_MARKDOWN_H
#define PARSER_MARKDOWN_H
2021-04-25 11:39:38 +02:00
#include "parserlegacy.h"
#include "maddy/parser.h"
2021-04-25 11:39:38 +02:00
class ParserMarkdown : public ParserLegacy
{
2021-04-24 12:10:57 +02:00
private:
std::string processLink(const PageDao &pageDao, UrlProvider &urlProvider, std::smatch &match) const;
public:
2021-04-24 12:10:57 +02:00
ParserMarkdown();
std::vector<Headline> extractHeadlines(std::string content) const;
std::string parse(const PageDao &pagedao, UrlProvider &provider, std::string content) const;
};
#endif // PARSER_MARKDOWN_H