fix: image floats, link color metadata
This commit is contained in:
parent
dbd70d9592
commit
06b0aa0b4c
9 changed files with 43 additions and 14 deletions
|
@ -338,8 +338,8 @@ pub struct EntryMetadata {
|
|||
#[serde(default, alias = "CONTENT_TEXT_ALIGN")]
|
||||
pub content_text_align: TextAlignment,
|
||||
/// The color of links.
|
||||
#[serde(default, alias = "CONTENT_TEXT_LINK_COLOR")]
|
||||
pub content_text_link_color: String,
|
||||
#[serde(default, alias = "CONTENT_LINK_COLOR")]
|
||||
pub content_link_color: String,
|
||||
/// If paragraph elements have a margin below them.
|
||||
#[serde(default, alias = "CONTENT_DISABLE_PARAGRAPH_MARGIN")]
|
||||
pub content_disable_paragraph_margin: bool,
|
||||
|
@ -473,7 +473,7 @@ impl EntryMetadata {
|
|||
metadata_css!(".container", "border-radius", self.container_border_radius->output);
|
||||
metadata_css!(".container", "box-shadow", self.container_shadow->output);
|
||||
metadata_css!(".container", "text-shadow", self.content_text_shadow->output);
|
||||
metadata_css!("*, html *", "--color-link" !important, self.content_text_link_color->output);
|
||||
metadata_css!("*, html *", "--color-link" !important, self.content_link_color->output);
|
||||
|
||||
if self.content_text_align != TextAlignment::Left {
|
||||
output.push_str(&format!(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue