Home ⌂Doc Index ◂Up ▴

eric6.QScintilla.MarkupProviders.MarkdownProvider

Module implementing the Markdown markup provider.

Global Attributes

None

Classes

MarkdownProvider Class implementing the Markdown markup provider.

Functions

None


MarkdownProvider

Class implementing the Markdown markup provider.

Derived from

MarkupBase

Class Attributes

None

Class Methods

None

Methods

MarkdownProvider Constructor
__insertMarkup Private method to insert the specified markup.
__makeList Private method to generate the desired list markup.
bold Public method to generate bold text.
bulletedList Public method to generate bulleted list text.
code Public method to generate inline code text.
codeBlock Public method to generate code block text.
hasBold Public method to indicate the availability of bold markup.
hasBulletedList Public method to indicate the availability of bulleted list markup.
hasCode Public method to indicate the availability of inline code markup.
hasCodeBlock Public method to indicate the availability of code block markup.
hasHyperlink Public method to indicate the availability of hyperlink markup.
hasImage Public method to indicate the availability of image markup.
hasItalic Public method to indicate the availability of italic markup.
hasLine Public method to indicate the availability of a horizontal line markup.
hasNumberedList Public method to indicate the availability of numbered list markup.
hasQuote Public method to indicate the availability of block quote markup.
hasStrikethrough Public method to indicate the availability of strikethrough markup.
header Public method to generate a header.
headerLevels Public method to determine the available header levels.
hyperlink Public method to generate hyperlink text.
image Public method to generate image text.
italic Public method to generate italic text.
kind Public method to get the markup kind.
line Public method to generate a horizontal line text.
numberedList Public method to generate numbered list text.
quote Public method to generate block quote text.
strikethrough Public method to generate strikethrough text.

Static Methods

None

MarkdownProvider (Constructor)

MarkdownProvider()

Constructor

MarkdownProvider.__insertMarkup

__insertMarkup(markup, editor)

Private method to insert the specified markup.

If the editor has selected text, this text is enclosed by the given markup. If no text is selected, the markup is inserted at the cursor position and the cursor is positioned in between.

markup (str)
markup string to be inserted
editor (Editor)
reference to the editor to work on

MarkdownProvider.__makeList

__makeList(editor, numberedList)

Private method to generate the desired list markup.

editor (Editor)
reference to the editor to work on
numberedList (bool)
flag indicating the generation of a numbered list

MarkdownProvider.bold

bold(editor)

Public method to generate bold text.

editor (Editor)
reference to the editor to work on

MarkdownProvider.bulletedList

bulletedList(editor)

Public method to generate bulleted list text.

editor (Editor)
reference to the editor to work on

MarkdownProvider.code

code(editor)

Public method to generate inline code text.

editor (Editor)
reference to the editor to work on

MarkdownProvider.codeBlock

codeBlock(editor)

Public method to generate code block text.

editor (Editor)
reference to the editor to work on

MarkdownProvider.hasBold

hasBold()

Public method to indicate the availability of bold markup.

Returns:
flag indicating the availability of bold markup
Return Type:
bool

MarkdownProvider.hasBulletedList

hasBulletedList()

Public method to indicate the availability of bulleted list markup.

Returns:
flag indicating the availability of bulleted list markup
Return Type:
bool

MarkdownProvider.hasCode

hasCode()

Public method to indicate the availability of inline code markup.

Returns:
flag indicating the availability of inline code markup
Return Type:
bool

MarkdownProvider.hasCodeBlock

hasCodeBlock()

Public method to indicate the availability of code block markup.

Returns:
flag indicating the availability of code block markup
Return Type:
bool

MarkdownProvider.hasHyperlink

hasHyperlink()

Public method to indicate the availability of hyperlink markup.

Returns:
flag indicating the availability of hyperlink markup
Return Type:
bool

MarkdownProvider.hasImage

hasImage()

Public method to indicate the availability of image markup.

Returns:
flag indicating the availability of image markup
Return Type:
bool

MarkdownProvider.hasItalic

hasItalic()

Public method to indicate the availability of italic markup.

Returns:
flag indicating the availability of italic markup
Return Type:
bool

MarkdownProvider.hasLine

hasLine()

Public method to indicate the availability of a horizontal line markup.

Returns:
flag indicating the availability of a horizontal line markup
Return Type:
bool

MarkdownProvider.hasNumberedList

hasNumberedList()

Public method to indicate the availability of numbered list markup.

Returns:
flag indicating the availability of numbered list markup
Return Type:
bool

MarkdownProvider.hasQuote

hasQuote()

Public method to indicate the availability of block quote markup.

Returns:
flag indicating the availability of block quote markup
Return Type:
bool

MarkdownProvider.hasStrikethrough

hasStrikethrough()

Public method to indicate the availability of strikethrough markup.

Returns:
flag indicating the availability of strikethrough markup
Return Type:
bool

MarkdownProvider.header

header(editor, level)

Public method to generate a header.

editor (Editor)
reference to the editor to work on
level (int)
header level

MarkdownProvider.headerLevels

headerLevels()

Public method to determine the available header levels.

Returns:
supported header levels
Return Type:
int

MarkdownProvider.hyperlink

hyperlink(editor)

Public method to generate hyperlink text.

editor (Editor)
reference to the editor to work on

MarkdownProvider.image

image(editor)

Public method to generate image text.

editor (Editor)
reference to the editor to work on

MarkdownProvider.italic

italic(editor)

Public method to generate italic text.

editor (Editor)
reference to the editor to work on

MarkdownProvider.kind

kind()

Public method to get the markup kind.

Returns:
string with markup kind
Return Type:
str

MarkdownProvider.line

line(editor)

Public method to generate a horizontal line text.

editor (Editor)
reference to the editor to work on

MarkdownProvider.numberedList

numberedList(editor)

Public method to generate numbered list text.

editor (Editor)
reference to the editor to work on

MarkdownProvider.quote

quote(editor)

Public method to generate block quote text.

editor (Editor)
reference to the editor to work on

MarkdownProvider.strikethrough

strikethrough(editor)

Public method to generate strikethrough text.

editor (Editor)
reference to the editor to work on
Up



Home ⌂Doc Index ◂Up ▴