Skip to content
Snippets Groups Projects
Commit 7e45db6d authored by Benji Fisher's avatar Benji Fisher
Browse files

Issue #3445834: Typogrify does not validate its settings

parent 0d6ba9ae
No related branches found
No related tags found
1 merge request!10Add a configuration schema
Pipeline #169242 passed with warnings
# Schema for the configuration files of the Typogrify module.
filter_settings.typogrify:
type: mapping
label: 'Typogrify'
mapping:
smartypants_enabled:
type: integer
label: 'Use typographers quotation marks and dashes (<a href="http://daringfireball.net/projects/smartypants">SmartyPants</a>'
smartypants_hyphens:
type: integer
label: 'Dash replacement settings for SmartyPants'
space_hyphens:
type: integer
label: 'Replace stand-alone dashes (normal dashes between whitespace) em-dashes.'
wrap_ampersand:
type: integer
label: 'Wrap ampersands'
widont_enabled:
type: integer
label: 'Remove widows'
space_to_nbsp:
type: integer
label: 'Replace normal spaces with non-breaking spaces before "double punctuation marks" <code>!?:;</code>.'
hyphenate_shy:
type: integer
label: 'Words may be broken at the hyphenation points marked by “=”.'
wrap_abbr:
type: integer
label: 'Wraps abbreviations with <code><span class="abbr">…</span></code> and inserts space after the dots.'
wrap_caps:
type: integer
label: 'Wrap caps'
wrap_initial_quotes:
type: integer
label: 'Wrap quotation marks'
wrap_numbers:
type: integer
label: 'Wraps numbers with <code><span class="number">…</span></code> and inserts thin space for digit grouping.'
ligatures:
type: string
label: 'Ligatures'
arrows:
type: string
label: 'Arrows'
fractions:
type: string
label: 'Fractions'
quotes:
type: string
label: 'Quotes'
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment