We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c2bebe8 commit ac0fcf3Copy full SHA for ac0fcf3
src/renderer/mod.rs
@@ -206,6 +206,24 @@ impl Renderer {
206
self.stylesheet.none = style;
207
self
208
}
209
+
210
+ /// Set the output style for [`AnnotationKind::Context`]
211
+ pub const fn context(mut self, style: Style) -> Self {
212
+ self.stylesheet.context = style;
213
+ self
214
+ }
215
216
+ /// Set the output style for additions
217
+ pub const fn addition(mut self, style: Style) -> Self {
218
+ self.stylesheet.addition = style;
219
220
221
222
+ /// Set the output style for removals
223
+ pub const fn removal(mut self, style: Style) -> Self {
224
+ self.stylesheet.removal = style;
225
226
227
228
229
impl Renderer {
0 commit comments