import re


def preamble(line):
    """
    Converting Org preambles (#+TITLE, #+AUTHOR .etc) to Md format (title ======, **Author** .etc)
    :return:
    """
    if re.match("#\+TITLE:", line):  # Pandocs's syntax doesn't work, thus html is used
        line = f'<center><font size="+10">{line.replace("#+TITLE:", "")}</font></center>\n'
        # Note: it is rather a centered and zoomed plain text rather than a title
    elif re.match("#\+AUTHOR:", line):
        line = line.replace("#+AUTHOR", "**Author**")
    return line