MD::RawHtml Class

template <typename Trait> 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

std::shared_ptr<MD::Item<Trait>> clone(MD::Document<Trait> *doc = nullptr) const override
void setText(const typename Trait::String &t)
const typename Trait::String &text() const
MD::ItemType type() const override

Protected Functions

bool isFreeTag() const
void setFreeTag(bool on = true)

Detailed Description

Member Function Documentation

std::shared_ptr<MD::Item<Trait>> RawHtml::clone(MD::Document<Trait> *doc = nullptr) const

Clone this raw HTML.

doc Parent of new item.

[protected] bool RawHtml::isFreeTag() const

Returns whether this HTML a free tag, not inline one.

Note: This method is for internal use only.

[protected] void RawHtml::setFreeTag(bool on = true)

Set that this HTML is a free, not inline one.

Note: This method is for internal use only.

on New value.

See also isFreeTag().

void RawHtml::setText(const typename Trait::String &t)

Set HTML content.

t New value.

See also text().

const typename Trait::String &RawHtml::text() const

Returns HTML content.

See also setText().

MD::ItemType RawHtml::type() const

Returns type of the item.