MD::StyleDelim Class

class MD::StyleDelim

Emphasis in the Markdown document. More...

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

Public Functions

void setStyle(int t)
int style() const
bool operator==(const MD::StyleDelim &l, const MD::StyleDelim &r)

Detailed Description

Information about where empasises start and end is needed for syntax highlighters. Any item in MD::Paragraph is MD::ItemWithOpts that stores information about openers and closer of emphasises if they are presented before/after the given item in paragraph. A developer may just check MD::ItemWithOpts::openStyles and MD::ItemWithOpts::closeStyles for data in them, and he will know all information about delimiters that started or ended style of the item.

Such information may be needed for developing additional styles (plugins), superscripts, subscripts, for example.

See also MD::ItemWithOpts.

Member Function Documentation

void StyleDelim::setStyle(int t)

Set style.

t New value.

See also style().

int StyleDelim::style() const

Returns style.

See also setStyle().

Related Non-Members

bool operator==(const MD::StyleDelim &l, const MD::StyleDelim &r)

Returns whether both are equal.

l Left operand.

r Right operand.