MD::RawHtml Class
class MD::RawHtmlRaw 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
Reimplemented Public Functions
| virtual Item::SharedPointer | clone(MD::Document *doc = nullptr) const override |
| virtual MD::ItemType | type() const override |
| virtual void | write(QTextStream &stream, MD::SerialiseHelper *helper) 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
RawHtml::RawHtml()
Default constructor.
[override virtual] Item::SharedPointer 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.
[override virtual] void RawHtml::write(QTextStream &stream, MD::SerialiseHelper *helper) const
Reimplements: Item::write(QTextStream &stream, MD::SerialiseHelper *helper) const.
Serialise item into Markdown.
stream Stream.
helper Serialisation helper.