7 #ifndef __PMARKDOWNPARSER_H__
8 #define __PMARKDOWNPARSER_H__
50 bool parseItem(std::vector<std::pair<size_t, PLatexObj> > & vecItemLevel);
51 bool isItem(
bool rewind =
false);
Class which parses Markdown as into for web site generator.
bool parseEnvDecoration(PLatexObj &parent, PLatexObj &textObj, const PString &patern, const PString &cssStyle, PLatexType::PLatexType type, const PString &balise)
Parse a text decoration (bold, italic, etc)
bool parseItemize(PLatexObj &parent, PLatexObj &textObj)
Parse some itemize.
bool parseSectionTitle(PLatexObj &parent, PLatexObj &textObj, const PString &functionName, PLatexType::PLatexType type)
Parse all the functions which have complex mono parameter in braces.
PLatexObj * getProperParent(PLatexObj &parent, std::vector< size_t > &vecLevel, size_t itemLevel, PLatexType::PLatexType listItemType)
Get the proper parent for the item with the given level.
void copyPMarkdownParser(const PMarkdownParser &other)
Copy function of PMarkdownParser.
bool parseItem(std::vector< std::pair< size_t, PLatexObj > > &vecItemLevel)
Parse an item in the markdown itemize.
virtual void preLoadFile()
Initialisation to be done just before loading a file.
bool parseHref(PLatexObj &parent, PLatexObj &textObj)
Parse latex Href.
bool parseUrl(PLatexObj &parent, PLatexObj &textObj)
Parse latex url.
virtual ~PMarkdownParser()
Destructor of PMarkdownParser.
bool parseExtraEnvironement(PLatexObj &parent, PLatexObj &textObj)
Parse extra environement (terminal, cplusplus, cmake, conseil, attention, ...)
bool parseEnumerateItem(std::vector< std::pair< size_t, PLatexObj > > &vecItemLevel)
Parse an item in the markdown enumerate.
bool parseTextDecoration(PLatexObj &parent, PLatexObj &textObj, const PString &patern, const PString &cssStyle, PLatexType::PLatexType type, const PString &balise)
Parse a text decoration (bold, italic, etc)
bool parseItemLatexObj(PLatexObj &parent, PLatexObj &textObj)
Parse all the latex obj in item, but in markdown style.
bool parseWip(PLatexObj &parent, PLatexObj &textObj)
Parse a work in progress.
bool parseEnvLatexObj(PLatexObj &parent, PLatexObj &textObj)
Parse all the latex obj in environement, but in markdown style.
bool parsePercent(PLatexObj &parent, PLatexObj &textObj)
Parse latex percent.
bool isItem(bool rewind=false)
Say if there is no space between the last return and the current char.
bool parseComment(PLatexObj &parent, PLatexObj &textObj)
Parse a new line.
bool parseIncludeGraphic(PLatexObj &parent, PLatexObj &textObj)
Parse the includegraphic command.
bool parseNewLine(PLatexObj &parent, PLatexObj &textObj)
Parse a new line.
bool parseComplexMonoParam(PLatexObj &parent, PLatexObj &textObj, const PString &functionName, PLatexType::PLatexType type)
Parse all the functions which have complex mono parameter in braces {...}.
virtual bool parseFile()
Parse the input file.
virtual void postLoadFile()
Initialisation to be done just after loading a file.
PMarkdownParser(const PString &installPrefix="")
Default constructor of PMarkdownParser.
bool isEnumerateItem(bool rewind=false)
Say if there is no space between the last return and the current char.
PMarkdownParser & operator=(const PMarkdownParser &other)
Definition of equal operator of PMarkdownParser.
bool parseEnumerate(PLatexObj &parent, PLatexObj &textObj)
Parse some enumerate.
void parseVecLatexObj(PLatexObj &parent, PLatexObj &textObj, const PString &beginPatern, const PString &endPatern)
Parse a vector of latex object.
bool parseAllLatexObj(PLatexObj &parent, PLatexObj &textObj)
Parse all the latex obj, but in markdown style.
void initialisationPMarkdownParser()
Initialisation function of the class PMarkdownParser.
bool parseExtraParser(PLatexObj &parent, PLatexObj &textObj)
Parse extra environement (terminal, cplusplus, cmake, conseil, attention, ...)
void insertItemInItemize(PLatexObj &parent, const std::vector< std::pair< size_t, PLatexObj > > &vecItemLevel, PLatexType::PLatexType listItemType)
Insert the item in the proper itemize.
PLatexType
Type of the PLatexObj.