MD::Math Class

class MD::Math

LaTeX math expression. More...

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

Public Functions

Math()
const QString &expr() const
void setExpr(const QString &e)

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

LaTeX math expression in Markdown.

Member Function Documentation

Math::Math()

Default constructor.

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

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

Clone this LaTeX math expression.

doc Parent of new item.

const QString &Math::expr() const

Returns content.

See also setExpr().

void Math::setExpr(const QString &e)

Set content.

e New value.

See also expr().

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

Reimplements: Code::type() const.

Returns type of the item.

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

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

Serialise item into Markdown.

stream Stream.

helper Serialisation helper.