MD::UnderlineEmphasisParser Class

class MD::UnderlineEmphasisParser

Underline emphasis parser. More...

Header: #include <md4qt/underline_emphasis_parser.h>
CMake: find_package(md4qt REQUIRED COMPONENTS md4qt)
target_link_libraries(mytarget PRIVATE md4qt::md4qt)
Inherits: MD::AsteriskEmphasisParser

Reimplemented Public Functions

virtual bool isLeftFlanking(const QChar &before, const QChar &after) const override
virtual bool isRightFlanking(const QChar &before, const QChar &after) const override
virtual const QChar &symbol() const override

Detailed Description

Underline emphasis parser.

Member Function Documentation

[override virtual] bool UnderlineEmphasisParser::isLeftFlanking(const QChar &before, const QChar &after) const

Reimplements: EmphasisParser::isLeftFlanking(const QChar &before, const QChar &after) const.

Returns whether the given sequence of delimiters is a left flanking.

before Symbol before the sequence, or null character if it's a beginning of a line.

after Symbol after the sequence, or null character if it's an end of a line.

[override virtual] bool UnderlineEmphasisParser::isRightFlanking(const QChar &before, const QChar &after) const

Reimplements: EmphasisParser::isRightFlanking(const QChar &before, const QChar &after) const.

Returns whether the given sequence of delimiters is a right flanking.

before Symbol before the sequence, or null character if it's a beginning of a line.

after Symbol after the sequence, or null character if it's an end of a line.

[override virtual] const QChar &UnderlineEmphasisParser::symbol() const

Reimplements: AsteriskEmphasisParser::symbol() const.

Returns delimiter character for this kind of emphasis.