18 rader
483 B
C++
18 rader
483 B
C++
#ifndef PARSER_MARKDOWN_H
|
|
#define PARSER_MARKDOWN_H
|
|
|
|
#include "parserlegacy.h"
|
|
#include "maddy/parser.h"
|
|
class ParserMarkdown : public ParserLegacy
|
|
{
|
|
private:
|
|
std::string processLink(const PageDao &pageDao, UrlProvider &urlProvider, std::smatch &match) const;
|
|
|
|
public:
|
|
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
|