MD::AutolinkParser Class

class MD::AutolinkParser

Autolink parser. More...

Header: #include <md4qt/autolink_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 QString startDelimiterSymbols() const override

Detailed Description

Autolink parser.

Member Function Documentation

[override virtual] bool AutolinkParser::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 Text 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] QString AutolinkParser::startDelimiterSymbols() const

Reimplements: InlineParser::startDelimiterSymbols() const.

Returns string with all symbols that can start this kind of inline.