From ca8a52eb81af4aa8e2188667e855d695331eec56 Mon Sep 17 00:00:00 2001 From: Benjamin Crouch II <141606584+bwcii@users.noreply.github.com> Date: Fri, 12 Dec 2025 11:03:40 -0600 Subject: [PATCH] Update lib.rs To Fix Doc Formatting Updated lib.rs to fix documentation formatting issues to better align with the format used for almost all of the sub attributes. Should resolve Issue #629 in the upstream repo. --- askama_derive/src/lib.rs | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/askama_derive/src/lib.rs b/askama_derive/src/lib.rs index 9731bc7e..39be023b 100644 --- a/askama_derive/src/lib.rs +++ b/askama_derive/src/lib.rs @@ -95,12 +95,17 @@ macro_rules! make_derive_template { /// is undefined, which generally makes it impossible to refer to this /// template from other templates. If `source` is specified, `ext` must also /// be specified (see below). Cannot be used together with `path`. - /// `ext` (e.g. `ext = "txt"`): lets you specify the content type as a file + /// + /// ### ext + /// + /// E.g. `ext = "txt"` + /// + /// Lets you specify the content type as a file /// extension. This is used to infer an escape mode (see below), and some /// web framework integrations use it to determine the content type. /// Cannot be used together with `path`. /// - /// ### `in_doc` + /// ### in_doc /// /// E.g. `in_doc = true` ///