mirror of
https://github.com/getzola/zola
synced 2024-11-10 06:14:19 +00:00
parent
1ae91f3c06
commit
0c5ffa8963
2 changed files with 4 additions and 0 deletions
|
@ -8,6 +8,7 @@
|
|||
for breaking changes with libsass: look for "beginning in Dart Sass"
|
||||
- Merge settings for the default language set in the root of `config.toml` and in the `[languages.{default_lang}]` section.
|
||||
This will error if 2 values are set
|
||||
- Code blocks content are no longer included in the search index
|
||||
|
||||
|
||||
### Other
|
||||
|
|
|
@ -14,9 +14,12 @@ static AMMONIA: Lazy<ammonia::Builder<'static>> = Lazy::new(|| {
|
|||
let mut clean_content = HashSet::new();
|
||||
clean_content.insert("script");
|
||||
clean_content.insert("style");
|
||||
let mut rm_tags = HashSet::new();
|
||||
rm_tags.insert("pre");
|
||||
let mut builder = ammonia::Builder::new();
|
||||
builder
|
||||
.tags(HashSet::new())
|
||||
.rm_tags(rm_tags)
|
||||
.tag_attributes(HashMap::new())
|
||||
.generic_attributes(HashSet::new())
|
||||
.link_rel(None)
|
||||
|
|
Loading…
Reference in a new issue