Use raw_link instead of path for regular links.

This commit is contained in:
Tom Alexander
2023-10-29 09:31:00 -04:00
parent 8d9a50226a
commit d9a3b13780
3 changed files with 5 additions and 5 deletions

View File

@@ -12,7 +12,7 @@ use super::RenderObject;
#[serde(tag = "type")]
#[serde(rename = "regular_link")]
pub(crate) struct RenderRegularLink {
path: String,
raw_link: String,
children: Vec<RenderObject>,
}
@@ -37,7 +37,7 @@ impl RenderRegularLink {
};
Ok(RenderRegularLink {
path: regular_link.path.clone(),
raw_link: regular_link.raw_link.clone(),
children,
})
}