diff --git a/src/chordpro/renderers/html.py b/src/chordpro/renderers/html.py index 9f3a5f7..2647fd2 100644 --- a/src/chordpro/renderers/html.py +++ b/src/chordpro/renderers/html.py @@ -348,9 +348,12 @@ HTML_OPTIONS = { OPTION_GROUPS = set([option['group'] for option in HTML_OPTIONS]) -def get_options(): +def get_options(group=None): """Return the options supported by the HTML renderer""" - return HTML_OPTIONS + if not group: + return HTML_OPTIONS + else: + return {key: value for key, value in HTML_OPTIONS.items() if value['group'] == group} def make_style(name, font=None, size=None, is_bold=None, is_centered=None, is_upper=None, indent=None):