-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtextformatter.yaml
More file actions
152 lines (122 loc) · 3.93 KB
/
textformatter.yaml
File metadata and controls
152 lines (122 loc) · 3.93 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
# Global plugin configurations
enabled: true # Set to false to disable this plugin completely
active: true # Enable or disable this plugin for a page
# Global and page specific configurations
autoemail: true # Convert plain-text emails into clickable "mailto:" links
autoimage: true # Converts plain-text image URLs into actual images
# Converts plain-text URLs into clickable links
autolink:
enabled: true
www: false # Autom. link any hostname that starts with "www."
schemes: # Allowed schemes
- 'http'
- 'https'
# Handle a very flexible flavour of the BBCode syntax.
bbcodes:
enabled: true
# Add BBCodes from repository (https://github.com/s9e/TextFormatter/blob/master/src/Plugins/BBCodes/Configurator/repository.xml)
bbcodes: ['b', 'c', 'center', 'code', 'color', 'email', 'float', 'hr', 'i', 'img', 'list', '*', 'quote', 's', 'size', 'spoiler', 'u', 'url']
custom:
# <bbcode>: <template>
# Censors text based on a configurable list of words
censor:
enabled: true
words:
# <word>: <replacement>
# Render standardized set of pictographs.
emoji: '' # Currently support: 'twemoji', 'emojione'
# Performs simple replacements, best suited for handling emoticons. Matching is case-sensitive.
emoticons:
enabled: true
path: ''
icons:
# <acronym>: <filename.extension>
# Defines the backslash character \ as an escape character
escaper:
enabled: true
escape_all: false # Escape any character (only suitable in some specific situations)
regex: '' # Escape according to regular expression
fancypants: true # Provide enhanced typography, aka "fancy Unicode symbols"
# Allows HTML comments to be used, enables a whitelist of HTML elements and escapes HTML entities
html:
enabled: true
comments: true # Allow HTML comments to be used
entities: true # Allow HTML entities to be used.
# Enables a whitelist of HTML elements to be used
elements:
enabled: true
allowed:
safe: # Allow some safe HTML
a: 'href, *title'
abbr: '*title'
b: ''
br: ''
code: ''
dd: ''
del: ''
div: '*class'
dl: ''
dt: ''
i: ''
img: 'src, *alt, *height, *title, *width'
ins: ''
li: ''
ol: ''
pre: ''
rb: ''
rp: ''
rt: ''
rtc: ''
ruby: ''
span: '*class'
strong: ''
sub: ''
sup: ''
table: ''
tbody: ''
td: '*colspan, *rowspan'
tfoot: ''
th: '*colspan, *rowspan, *scope'
thead: ''
tr: ''
u: ''
ul: ''
unsafe: # Allow unsafe HTML (danger!)
# Serves to capture keywords in plain text and render them as a rich element
# of your choosing such as a link, a popup or a widget.
keywords:
enabled: true
case_sensitive: true # Keywords are case-sensitive by default
template: '' # Template to render keywords
keywords: # Add a couple of keywords
# Allow the user to embed content from allowed sites using a [media]
# BBCode, site-specific BBCodes such as [youtube], or from simply posting
# a supported URL in plain text.
mediaembed:
enabled: true
# Whether to create a BBCode for each site
create_individiual_bbcodes: true
# Add the sites you want to support
# see http://s9etextformatter.readthedocs.org/Plugins/MediaEmbed/Sites/
sites:
- 'dailymotion'
- 'facebook'
- 'flickr'
- 'imgur'
- 'instagram'
- 'slideshare'
- 'soundcloud'
- 'spotify'
- 'tumblr'
- 'twitch'
- 'twitter'
- 'vimeo'
- 'vine'
- 'youtube'
# Performs generic, regexp-based replacements
preg:
enabled: true
replace:
# <pattern>: <replacement>
match:
# <pattern>: <tagname>