You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: crates/maudit/CHANGELOG.md
+12-14Lines changed: 12 additions & 14 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -6,23 +6,22 @@
6
6
7
7
-[9cd5fdd](https://github.com/bruits/maudit/commit/9cd5fdd8abe3044bd09d48b96217e3a0d2878b13) Updates default quality for webp to 80 to match sharp — Thanks @Princesseuh!
8
8
9
-
10
9
## 0.5.0
11
10
12
11
### Minor changes
13
12
14
13
-[d5a7fad](https://github.com/bruits/maudit/commit/d5a7fad563e9642be46b24d8db500e753c1175f5) The data URI and average RGBA for thumbnails is now calculated lazily, as such the `average_rgba` and `data_uri` fields have been replaced by methods. — Thanks @Princesseuh!
15
14
-[0403ac9](https://github.com/bruits/maudit/commit/0403ac9996f9d4e79945758fe06e7510729e383e) Add `is_dev()` function to allow one to toggle off things whenever running in dev — Thanks @Princesseuh!
16
15
-[39db004](https://github.com/bruits/maudit/commit/39db004b63ab7aa582a92593082e1261bae55b92) Added support for shortcodes in Markdown. Shortcodes allows you to substitute custom content in your Markdown files. This feature is useful for embedding dynamic content or reusable components within your Markdown documents.
17
-
16
+
18
17
For instance, you might define a shortcode for embedding YouTube videos using only the video ID, or for inserting custom alerts or notes.
19
-
18
+
20
19
```markdown
21
20
{{ youtube id="FbJ63spk48s" }}
22
21
```
23
-
22
+
24
23
Would render to:
25
-
24
+
26
25
```html
27
26
<iframe
28
27
width="560"
@@ -35,35 +34,34 @@
35
34
allowfullscreen
36
35
></iframe>
37
36
```
38
-
37
+
39
38
To define and register shortcodes, pass a MarkdownShortcodes instance to the MarkdownOptions when rendering Markdown content.
// Then pass options to, i.e. glob_markdown in a content source
58
57
```
59
-
58
+
60
59
Note that shortcodes are expanded before Markdown is rendered, so you can use shortcodes anywhere in your Markdown content, for instance in your frontmatter. Additionally, shortcodes may expand to Markdown content, which will then be rendered as part of the overall Markdown rendering process. — Thanks @Princesseuh!
61
60
62
61
### Patch changes
63
62
64
63
-[d5a7fad](https://github.com/bruits/maudit/commit/d5a7fad563e9642be46b24d8db500e753c1175f5) Added caching mechanism to placeholder and image transformation — Thanks @Princesseuh!
65
64
66
-
67
65
## 0.4.0
68
66
69
67
### Minor changes
@@ -96,6 +94,7 @@ impl Page for ImagePage {
96
94
```
97
95
98
96
See the [Assets documentation](https://maudit.org/docs/assets/) for more details. — Thanks @Princesseuh!
97
+
99
98
-[52eda9e](https://github.com/bruits/maudit/commit/52eda9ea4eac8efd3efd945d00f39a1b99f284ab) Adds support for dynamic routes with properties. In addition to its parameters, a dynamic route can now provide additional properties that can be used during rendering.
100
99
101
100
```rs
@@ -126,7 +125,7 @@ impl Page<Params, Props> for Post {
/// Add an image to the page assets, causing the file to be created in the output directory. The image is resolved relative to the current working directory.
33
54
///
34
55
/// The image will not automatically be included in the page, but can be included through the `.url()` method on the returned `Image` object.
@@ -64,7 +85,6 @@ impl PageAssets {
64
85
}else{
65
86
Some(options)
66
87
},
67
-
__cache_placeholder:OnceLock::new(),
68
88
};
69
89
70
90
self.images.insert(image.clone());
@@ -94,6 +114,7 @@ impl PageAssets {
94
114
path: path.clone(),
95
115
assets_dir:self.assets_dir.clone(),
96
116
hash:calculate_hash(&path,None),
117
+
included:false,
97
118
};
98
119
99
120
self.scripts.insert(script.clone());
@@ -115,10 +136,10 @@ impl PageAssets {
115
136
path: path.clone(),
116
137
assets_dir:self.assets_dir.clone(),
117
138
hash:calculate_hash(&path,None),
139
+
included:true,
118
140
};
119
141
120
-
self.scripts.insert(script.clone());
121
-
self.included_scripts.push(script);
142
+
self.scripts.insert(script);
122
143
}
123
144
124
145
/// Add a style to the page assets, causing the file to be created in the output directory. The style is resolved relative to the current working directory.
0 commit comments