add: parse_underline, parse_comment, parse_image_size

This commit is contained in:
trisua 2025-07-22 14:48:55 -04:00
parent f8dac8f491
commit d8167aa06f
6 changed files with 275 additions and 4 deletions

View file

@ -363,8 +363,8 @@ impl EntryMetadata {
output.push_str(&format!(
"<link rel=\"preconnect\" href=\"https://fonts.googleapis.com\">
<link rel=\"preconnect\" href=\"https://fonts.gstatic.com\" crossorigin>
<link href=\"https://fonts.googleapis.com/css2?family={}:wght@100..900&display=swap\" rel=\"stylesheet\">",
self.content_font.replace(" ", "+"),
<link href=\"https://fonts.googleapis.com/css2?family={}&display=swap\" rel=\"stylesheet\">",
self.content_font.replace(" ", "+").replace(" ", "_"),
));
}