mirror of
https://github.com/olivierkes/manuskript.git
synced 2024-05-17 11:22:28 +12:00
ff2cbca028
Some snippets have yet to be converted due to the more complex nature of those snippets, and to keep things neat a separate commit makes more sense for those.
21 lines
457 B
Python
21 lines
457 B
Python
#!/usr/bin/env python
|
|
# -*- coding: utf-8 -*-
|
|
|
|
import re
|
|
|
|
from PyQt5.QtCore import QRegExp
|
|
from PyQt5.QtGui import QTextCursor
|
|
|
|
import logging
|
|
LOGGER = logging.getLogger(__name__)
|
|
|
|
def MDFormatSelection(editor, style):
|
|
"""
|
|
Formats the current selection of ``editor`` in the format given by ``style``,
|
|
style being:
|
|
0: bold
|
|
1: italic
|
|
2: code
|
|
"""
|
|
LOGGER.error("Formatting: %s (Not implemented!)", style)
|
|
# FIXME |