Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
typogrify
Manage
Activity
Members
Labels
Plan
Wiki
Custom issue tracker
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Model registry
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
project
typogrify
Commits
7e45db6d
Commit
7e45db6d
authored
9 months ago
by
Benji Fisher
Browse files
Options
Downloads
Patches
Plain Diff
Issue
#3445834
: Typogrify does not validate its settings
parent
0d6ba9ae
No related branches found
No related tags found
1 merge request
!10
Add a configuration schema
Pipeline
#169242
passed with warnings
9 months ago
Stage: build
Stage: validate
Stage: test
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
config/schema/typogrify.schema.yml
+51
-0
51 additions, 0 deletions
config/schema/typogrify.schema.yml
with
51 additions
and
0 deletions
config/schema/typogrify.schema.yml
0 → 100644
+
51
−
0
View file @
7e45db6d
# 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'
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment