MD::Paragraph Class

class MD::Paragraph

Paragraph. More...

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

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

Block of inline items, such as MD::Text, MD::Link, MD::Image, MD::RawHtml, MD::Code, MD::Math, MD::LineBreak, MD::FootnoteRef.

Member Function Documentation

Paragraph::Paragraph()

Default constructor.

[override virtual] Item::SharedPointer Paragraph::clone(MD::Document *doc = nullptr) const

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

Clone this paragraph.

doc Parent of new item.

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

Reimplements: Item::type() const.

Returns type of the item.

[override virtual] void Paragraph::write(QTextStream &stream, MD::SerialiseHelper *helper) const

Reimplements: Block::write(QTextStream &stream, MD::SerialiseHelper *helper) const.

Serialise item into Markdown.

stream Stream.

helper Serialisation helper.