MD::RawHtml Class

class MD::RawHtml

Raw HTML. More...

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

Public Functions

RawHtml()
void setText(const QString &t)
const QString &text() const

Reimplemented Public Functions

virtual QSharedPointer<MD::Item> clone(MD::Document *doc = nullptr) const override
virtual MD::ItemType type() const override

Detailed Description

HTML injection in Markdown. When converting to HTML this item should be converted to HTML by inserting returned by MD::RawHtml::text string.

Member Function Documentation

[constexpr noexcept] RawHtml::RawHtml()

Default constructor.

[override virtual] QSharedPointer<MD::Item> RawHtml::clone(MD::Document *doc = nullptr) const

Reimplements: Item::clone(MD::Document *doc) const.

Clone this raw HTML.

doc Parent of new item.

void RawHtml::setText(const QString &t)

Set HTML content.

t New value.

See also text().

const QString &RawHtml::text() const

Returns HTML content.

See also setText().

[override virtual] MD::ItemType RawHtml::type() const

Reimplements: Item::type() const.

Returns type of the item.