Skip to content

Commit

Permalink
upstream change
Browse files Browse the repository at this point in the history
  • Loading branch information
rambip committed Dec 26, 2023
1 parent 36e0098 commit f3c286a
Show file tree
Hide file tree
Showing 2 changed files with 38 additions and 35 deletions.
68 changes: 34 additions & 34 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 4 additions & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -261,7 +261,6 @@ impl<'a> Context<'a, 'a> for MdContext<'a> {
let props = self.0.props;

rust_web_markdown::MarkdownProps {
custom_links: props.render_links.is_some(),
hard_line_breaks: props.hard_line_breaks,
wikilinks: props.wikilinks,
parse_options: props.parse_options.as_ref(),
Expand Down Expand Up @@ -295,6 +294,10 @@ impl<'a> Context<'a, 'a> for MdContext<'a> {
self.0.props.frontmatter.as_ref().map(|x| x.set(frontmatter));
}

fn has_custom_links(self) -> bool {
self.0.props.render_links.is_some()
}

fn render_links(self, link: LinkDescription<Self::View>)
-> Result<Self::View, String> {
// TODO: remove the unwrap call
Expand Down

0 comments on commit f3c286a

Please sign in to comment.