tools: composition RICH_FORMATS constant has been renamed to RICH_SYNTAXES
This commit is contained in:
parent
d0fccd5195
commit
ba1800cc61
1 changed files with 2 additions and 2 deletions
|
|
@ -38,12 +38,12 @@ RICH_BUTTONS = {
|
|||
"horizontalrule": {"tip": "Horizontal rule", "icon": "media/icons/dokuwiki/toolbar/16/hr.png"}
|
||||
}
|
||||
|
||||
# Define here your rich text formats, the key must match the ones used in button.
|
||||
# Define here your rich text syntaxes, the key must match the ones used in button.
|
||||
# Tupples values must have 3 elements : prefix to the selection or cursor
|
||||
# position, sample text to write if the marker is not applied on a selection,
|
||||
# suffix to the selection or cursor position.
|
||||
# FIXME: must not be hard-coded like this
|
||||
RICH_FORMATS = {"markdown": {"bold": ("**", "bold", "**"),
|
||||
RICH_SYNTAXES = {"markdown": {"bold": ("**", "bold", "**"),
|
||||
"italic": ("*", "italic", "*"),
|
||||
"code": ("`", "code", "`"),
|
||||
"heading": ("\n# ", "Heading 1", "\n## Heading 2\n"),
|
||||
|
|
|
|||
Loading…
Reference in a new issue