parent
1ae91f3c06
commit
0c5ffa8963
@ -8,6 +8,7 @@
|
|||||||
for breaking changes with libsass: look for "beginning in Dart Sass"
|
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.
|
- 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
|
This will error if 2 values are set
|
||||||
|
- Code blocks content are no longer included in the search index
|
||||||
|
|
||||||
|
|
||||||
### Other
|
### Other
|
||||||
|
@ -14,9 +14,12 @@ static AMMONIA: Lazy<ammonia::Builder<'static>> = Lazy::new(|| {
|
|||||||
let mut clean_content = HashSet::new();
|
let mut clean_content = HashSet::new();
|
||||||
clean_content.insert("script");
|
clean_content.insert("script");
|
||||||
clean_content.insert("style");
|
clean_content.insert("style");
|
||||||
|
let mut rm_tags = HashSet::new();
|
||||||
|
rm_tags.insert("pre");
|
||||||
let mut builder = ammonia::Builder::new();
|
let mut builder = ammonia::Builder::new();
|
||||||
builder
|
builder
|
||||||
.tags(HashSet::new())
|
.tags(HashSet::new())
|
||||||
|
.rm_tags(rm_tags)
|
||||||
.tag_attributes(HashMap::new())
|
.tag_attributes(HashMap::new())
|
||||||
.generic_attributes(HashSet::new())
|
.generic_attributes(HashSet::new())
|
||||||
.link_rel(None)
|
.link_rel(None)
|
||||||
|
Loading…
Reference in New Issue
Block a user