Beispiel #1
0
def render_markup(markup, value, **kwargs):
    Library.dirty()     # Library is not virgin still
    return Library.MARKUPS[markup].render(value, **kwargs)
Beispiel #2
0
def safe_markups(numerate=False):
    Library.dirty()
    if numerate:
        return [(i, x[0]) for i, x in enumerate(Library.MARKUPS.items()) if x[1].safe]
    return [x[0] for x in Library.MARKUPS.items() if x[1].safe]
Beispiel #3
0
def all_markups():
    Library.dirty()
    return Library.MARKUPS.keys()