@@ -176,71 +176,72 @@ impl Renderer {
176
176
177
177
/// Customize [`Renderer::styled`]
178
178
impl Renderer {
179
- /// Override the output style for ` error`
179
+ /// Override the output style for [ error][crate::Level::ERROR]
180
180
pub const fn error ( mut self , style : Style ) -> Self {
181
181
self . stylesheet . error = style;
182
182
self
183
183
}
184
184
185
- /// Override the output style for `warning`
185
+ /// Override the output style for [warnings][crate::Level::WARNING]
186
186
pub const fn warning ( mut self , style : Style ) -> Self {
187
187
self . stylesheet . warning = style;
188
188
self
189
189
}
190
190
191
- /// Override the output style for ` info`
191
+ /// Override the output style for [ info][crate::Level::INFO]
192
192
pub const fn info ( mut self , style : Style ) -> Self {
193
193
self . stylesheet . info = style;
194
194
self
195
195
}
196
196
197
- /// Override the output style for `note`
197
+ /// Override the output style for [notes][crate::Level::NOTE]
198
198
pub const fn note ( mut self , style : Style ) -> Self {
199
199
self . stylesheet . note = style;
200
200
self
201
201
}
202
202
203
- /// Override the output style for ` help`
203
+ /// Override the output style for [ help][crate::Level::HELP]
204
204
pub const fn help ( mut self , style : Style ) -> Self {
205
205
self . stylesheet . help = style;
206
206
self
207
207
}
208
208
209
- /// Override the output style for line numbers
209
+ /// Override the output style for line numbers in the [`Snippet`][crate::Snippet] gutter
210
210
pub const fn line_num ( mut self , style : Style ) -> Self {
211
211
self . stylesheet . line_num = style;
212
212
self
213
213
}
214
214
215
- /// Override the output style for emphasis
215
+ /// Override the output style for emphasis for the
216
+ /// [`primary_title`][crate::Level::primary_title]
216
217
pub const fn emphasis ( mut self , style : Style ) -> Self {
217
218
self . stylesheet . emphasis = style;
218
219
self
219
220
}
220
221
221
- /// Override the output style for none
222
- pub const fn none ( mut self , style : Style ) -> Self {
223
- self . stylesheet . none = style;
224
- self
225
- }
226
-
227
222
/// Override the output style for [`AnnotationKind::Context`][crate::AnnotationKind::Context]
228
223
pub const fn context ( mut self , style : Style ) -> Self {
229
224
self . stylesheet . context = style;
230
225
self
231
226
}
232
227
233
- /// Override the output style for additions
228
+ /// Override the output style for [`Patch`][crate::Patch] additions
234
229
pub const fn addition ( mut self , style : Style ) -> Self {
235
230
self . stylesheet . addition = style;
236
231
self
237
232
}
238
233
239
- /// Override the output style for removals
234
+ /// Override the output style for [`Patch`][crate::Patch] removals
240
235
pub const fn removal ( mut self , style : Style ) -> Self {
241
236
self . stylesheet . removal = style;
242
237
self
243
238
}
239
+
240
+ /// Override the output style for all other text
241
+ pub const fn none ( mut self , style : Style ) -> Self {
242
+ self . stylesheet . none = style;
243
+ self
244
+ }
244
245
}
245
246
246
247
/// The character set for rendering for decor
0 commit comments