MD::LinkImageParser Class
class MD::LinkImageParserLink and image parser. More...
| Header: | #include <md4qt/link_image_parser.h> |
| CMake: | find_package(md4qt REQUIRED COMPONENTS md4qt)target_link_libraries(mytarget PRIVATE md4qt::md4qt) |
| Inherits: | MD::InlineParser |
Reimplemented Public Functions
| virtual bool | check(MD::Line &line, MD::ParagraphStream &stream, MD::InlineContext &ctx, QSharedPointer<MD::Document> doc, const QString &path, const QString &fileName, QStringList &linksToParse, MD::Parser &parser, const MD::ReverseSolidusHandler &rs) override |
| virtual void | popState() override |
| virtual void | pushState() override |
| virtual QString | startDelimiterSymbols() const override |
Detailed Description
Link and image parser.
Member Function Documentation
[override virtual] bool LinkImageParser::check(MD::Line &line, MD::ParagraphStream &stream, MD::InlineContext &ctx, QSharedPointer<MD::Document> doc, const QString &path, const QString &fileName, QStringList &linksToParse, MD::Parser &parser, const MD::ReverseSolidusHandler &rs)
Reimplements: InlineParser::check(MD::Line &line, MD::ParagraphStream &stream, MD::InlineContext &ctx, QSharedPointer<MD::Document> doc, const QString &path, const QString &fileName, QStringList &linksToParse, MD::Parser &parser, const MD::ReverseSolidusHandler &rs).
Check if current character (string) is handled by this parser.
Returns true if handled, false otherwise.
This method should do a work with context and handle his delimiters and cache in context ready for use object that will be placed into MD::Paragraph.
line Current line.
stream Stream.
ctx Context.
doc Document.
path Path to Markdown file.
fileName File name of the Markdown file.
linksToParse List of links for further parsing.
parser Parser.
rs Auxiliary struct for checking if first charcter is escaped.
[override virtual] void LinkImageParser::popState()
Reimplements: InlineParser::popState().
Pop state of the parser from stack.
See also pushState().
[override virtual] void LinkImageParser::pushState()
Reimplements: InlineParser::pushState().
Push state of the parser on stack. For some parsers this is needed, as links, for example, parses its description part as paragraph. This is a subject for implementation of parser...
[override virtual] QString LinkImageParser::startDelimiterSymbols() const
Reimplements: InlineParser::startDelimiterSymbols() const.
Returns string with all symbols that can start this kind of inline.